Hugo van Kemenade
43b2f61e79
Add 'from __future__ import annotations' using Ruff/isort
2023-12-21 13:13:31 +02:00
Andrew Murray
4e7f61f459
Merge branch 'main' into bgr
2023-10-06 18:50:25 +11:00
Andrew Murray
d8c3135b6b
Allow getpixel to accept a list
2023-08-28 20:12:23 +10:00
Andrew Murray
3230270aa7
Added BGR;15, BGR;16 and BGR;24 access
2023-07-26 20:09:40 +10:00
Andrew Murray
8a36b0fc2d
Deprecate PyAccess
2023-06-28 20:10:10 +10:00
Andrew Murray
d5d830dd00
Merge branch 'main' into bgr32
2023-03-25 23:45:48 +11:00
Andrew Murray
11d100ce5d
Support creating BGR;15, BGR;16 and BGR;24 images
2023-03-20 00:30:10 +11:00
Andrew Murray
f8d93267e1
Merge branch 'main' into i16n
2023-03-13 14:33:26 +11:00
Yay295
e80707547f
parametrize test_image_access::test_signedness()
2023-01-16 07:47:24 -06:00
Yay295
1603872f24
use better variable names
2023-01-16 07:46:11 -06:00
Yay295
7ad50d9185
log expected & actual color in image access tests
2023-01-15 19:42:55 -06:00
Andrew Murray
a0e1608f4f
Support accessing I;16N pixels
2022-12-28 18:58:16 +11:00
pre-commit-ci[bot]
23df3bda7f
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-30 03:17:57 +00:00
nulano
181fad2918
move import used only on Windows and remove unused import
2022-10-30 03:17:13 +00:00
nulano
eaee7fda97
add xfail mark to test_image_access:test_embeddable
2022-10-30 02:59:14 +00:00
pre-commit-ci[bot]
c93413835d
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-10-13 02:22:53 +00:00
Mark Mayo
69baeccf2e
some pylint warnings
...
Fixed some pylint issues
2022-10-13 15:20:11 +13:00
Andrew Murray
982d7c49e3
Corrected test
2022-10-10 11:46:33 +11:00
Andrew Murray
2eca2989a2
Merge branch 'main' into pyaccess_pa
2022-08-31 20:56:38 +10:00
Andrew Murray
0ed03d4a58
Parametrize tests
2022-08-23 21:41:32 +10:00
Andrew Murray
a37593f004
Allow RGB and RGBA values for PA image putpixel
2022-08-14 14:34:42 +10:00
Andrew Murray
2a285d1b1f
Only import ctypes as needed on Windows
2022-03-19 14:46:25 +11:00
Hugo van Kemenade
29960c6610
Merge pull request #6108 from radarhere/none
2022-03-10 17:36:13 +02:00
Andrew Murray
72b7ab54bd
pre-commit autoupdate --freeze
2022-03-04 16:42:24 +11:00
Andrew Murray
c27519960f
Check if self.im is not None
2022-03-03 22:10:19 +11:00
Andrew Murray
a1412681ff
Added specific error messages when ink has incorrect number of bands
2021-05-19 20:19:57 +10:00
Andrew Murray
7b4b356fc0
Test for incorrect PixelAccess arguments
2021-01-14 22:09:11 +11:00
Andrew Murray
bdbf1694fc
Allow PixelAccess to use Python __int__ when parsing x and y
2021-01-14 21:31:25 +11:00
Andrew Murray
b304a13bca
Updated test
2020-09-22 13:06:52 +10:00
Andrew Murray
27c0747518
Allow tuples with one item to give single color value in getink
2020-09-20 14:23:05 +10:00
Hugo van Kemenade
799fa9764f
Merge pull request #4882 from nulano/putpixel
2020-09-03 19:22:30 +03:00
Hugo van Kemenade
e0eec1eb56
Merge branch 'master' into rm-3.5
2020-09-01 20:16:46 +03:00
nulano
4b2a0173d3
group test cases
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-08-21 14:11:47 +02:00
nulano
76a51270fa
split up test
2020-08-20 23:23:15 +02:00
nulano
4bb78d53a3
give proper error message for invalid putpixel color type
2020-08-20 00:01:03 +02:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03:00
Hugo van Kemenade
10615a7da7
Upgrade Python syntax for 3.6+
...
Co-authored-by: nulano <nulano@nulano.eu>
2020-07-30 10:09:18 +03:00
Andrew Murray
a10634e13f
Do not explicitly import distutils
2020-07-26 14:59:30 +10:00
Andrew Murray
42bb401e88
Replaced distutils sysconfig
2020-07-25 20:03:27 +10:00
Andrew Murray
76734573f0
Converted setup and teardown methods
2020-03-04 21:31:50 +11:00
Hugo
2cc6a9a974
Convert to use pytest
2020-03-02 16:31:08 +02:00
Hugo
699a9dadf1
Convert asserts
2020-02-22 18:07:04 +02:00
Andrew Murray
8482919a37
Converted most assert statements to pytest
2020-02-23 00:06:21 +11:00
Hugo
a4bf9fa036
Convert most PillowTestCase methods to pytest
2020-02-02 12:26:01 +02:00
Jon Dufresne
33dabf986f
Import unittest from stdlib rather than helper.py
...
The unittest in helper.py has not offered an interesting abstraction
since dbe9f85c7d
so import from the more
typical stdlib location.
2019-11-20 18:42:52 -08:00
Andrew Murray
4140cd807b
Merge branch 'master' into rm-2.7
2019-10-12 18:03:58 +11:00
nulano
a0a5601689
Merge branch 'master' into gha-win
2019-10-08 12:56:43 +01:00
Andrew Murray
6cd99fc3cf
Merge branch 'master' into rm-2.7
2019-10-08 18:57:27 +11:00
Jon Dufresne
64032061c0
Move several imports to the top-level of the file
...
This better follows PEP 8 style guide:
https://www.python.org/dev/peps/pep-0008/#imports
> Imports are always put at the top of the file, just after any module
> comments and docstrings, and before module globals and constants.
This also avoids duplicate import code within the same file.
2019-10-07 06:28:36 -07:00
Hugo
538d9e2e5d
Upgrade Python syntax with pyupgrade --py3-plus
2019-10-07 14:30:59 +03:00