Commit Graph

8276 Commits

Author SHA1 Message Date
Jon Dufresne
875e8c4bda Avoid catching unexpected exceptions in tests
Instead, allow exceptions to bubble up to the unittest exception
handler.

Prevents replacing the exception trace with a less informative
message. As the exceptions are always unexpected, should not need to
catch them explicitly in tests.
2018-09-04 19:43:20 -07:00
Jon Dufresne
7e67b9c58f Use TextIOWrapper.detach() instead of NoCloseStream
Usage and this pattern is discussed in Python bug: https://bugs.python.org/issue21363
2018-09-04 19:30:36 -07:00
yo1995
bb77f62586 fix typo: proceeded -> processed 2018-09-04 21:15:25 -04:00
Konstantin Kopachev
f3edf52900
Convert unsupported WebP mode to RGB as .convert supports more src modes 2018-09-04 11:00:29 -07:00
yo1995
3cf1a4ea87 improved comments and one logic according to PR 3294 discussion 2018-09-04 12:03:20 -04:00
Hugo
fbe5bdb6b6 Also apply width to pieslice's inner lines 2018-09-01 14:40:36 +03:00
Andrew Murray
5e2d6c951a
Merge branch 'master' into perfperf-improv-ImageDraw-floodfill 2018-09-01 20:58:53 +10:00
Hugo
9dd09fa4bf
Merge pull request #3325 from radarhere/imagedraw
Removed duplicate code
2018-09-01 13:41:20 +03:00
Andrew Murray
4a34116be5 Removed duplicate code 2018-09-01 18:30:04 +10:00
Hugo
97e9dbaefd
Merge pull request #3326 from radarhere/edge
Catch ValueError when processing the edge of an image in ImageDraw.floodfill
2018-09-01 11:27:10 +03:00
Andrew Murray
0411caba67 Catch ValueError when processing the edge of an image 2018-09-01 17:18:13 +10:00
Andrew Murray
4ec322aa7d Update CHANGES.rst [ci skip] 2018-09-01 09:50:49 +10:00
Andrew Murray
fda3db6494
Merge pull request #3273 from radarhere/imagefilter
Changed Kernel to subclass BuiltinFilter
2018-09-01 09:45:43 +10:00
Andrew Murray
fbc121d678 Changed GIF seek to remove previous info items 2018-09-01 09:28:22 +10:00
Hugo
5af867df4a
Merge pull request #3321 from radarhere/releasing
Revert "Add updated submodule in pillow-wheels [ci skip]"
2018-08-30 12:38:23 +03:00
Andrew Murray
63fb52219c Revert "Add updated submodule in pillow-wheels [ci skip]"
This reverts commit c6ea6a1cc2.
2018-08-30 19:21:00 +10:00
Hugo
ca8d93f36c
Merge pull request #3289 from radarhere/qt_setup
Removed unnecessary setUp calls
2018-08-29 15:13:19 +03:00
Hugo
bda3ce429f
Merge pull request #3320 from radarhere/releasing
Improved pillow-wheels RELEASING instructions
2018-08-28 14:53:31 +03:00
Andrew Murray
c6ea6a1cc2 Add updated submodule in pillow-wheels [ci skip] 2018-08-28 20:42:29 +10:00
Andrew Murray
353159c74f Only update the Pillow submodule of pillow-wheels [ci skip] 2018-08-28 20:41:47 +10:00
Andrew Murray
9c4370e5ef Update CHANGES.rst [ci skip] 2018-08-27 20:16:41 +10:00
Andrew Murray
afb5cee0f4
Merge pull request #3232 from hugovk/rm-draw_line
Remove unused draw_line, draw_point and getabc
2018-08-27 20:12:24 +10:00
Hugo
2d6f0f77da Fix typo 2018-08-25 19:06:11 +03:00
Hugo
847581f7dd Remove redundant 'pass' 2018-08-25 19:06:11 +03:00
Hugo
29b2c6e23d Only import cffi where needed, to avoid problems with PYTHONOPTIMIZE=2 2018-08-25 19:06:11 +03:00
Hugo
663b06e223 Skip: CFFI imports pycparser which doesn't support PYTHONOPTIMIZE=2 2018-08-25 19:06:11 +03:00
Hugo
4218a769d7 Refactor cffi import and skipping 2018-08-25 19:06:11 +03:00
Hugo
d7e4d3db3f Convert assert into exception 2018-08-25 19:06:11 +03:00
Hugo
fc8717fb04 Remove docstring formatting for when PYTHONOPTIMIZE=2 2018-08-25 19:06:11 +03:00
Hugo
970ea7d3c4 Test two arbitrarily chosen jobs with PYTHONOPTIMIZE 2018-08-25 19:06:11 +03:00
Hugo
3cf6ad1895 Remove ununsed font_getabc 2018-08-25 18:56:50 +03:00
Hugo
6fc1e79e96 Remove ununsed draw_point. Only draw_points is used by ImageDraw.py 2018-08-25 18:56:50 +03:00
Hugo
bdf2705cd3 Remove ununsed draw_line. Only draw_lines is used by ImageDraw.py 2018-08-25 18:56:50 +03:00
Hugo
5e0682ed6a
Merge pull request #3317 from radarhere/test_images
Changed rm command to use force
2018-08-25 18:56:02 +03:00
Andrew Murray
f4d39c9557 Update CHANGES.rst [ci skip] 2018-08-25 23:33:12 +10:00
Andrew Murray
3ae5f05410 Changed Kernel to subclass BuiltinFilter, instead of the other way around 2018-08-25 23:30:47 +10:00
Andrew Murray
f9ecda92da
Merge pull request #3295 from radarhere/imagefilter_tests
Added ImageFilter tests
2018-08-25 23:26:31 +10:00
Andrew Murray
f115546b56 Update CHANGES.rst [ci skip] 2018-08-25 14:57:15 +10:00
Andrew Murray
9b09a3e9a8
Merge pull request #3230 from hugovk/test-imagechops
Test ImageChops
2018-08-25 14:38:05 +10:00
Hugo
465f56fe84
Merge pull request #21 from radarhere/test-imagechops
Improved ImageChops tests
2018-08-25 07:13:35 +03:00
Andrew Murray
9d5db408c5 Changed rm command to use force 2018-08-25 13:57:24 +10:00
Andrew Murray
9c5c66cc8f Improved ImageChops tests 2018-08-25 11:59:27 +10:00
Andrew Murray
0a1fae8c2d Added tests 2018-08-25 08:56:41 +10:00
Andrew Murray
36b1afff26 Fixed None as TIFF compression argument 2018-08-25 08:21:43 +10:00
Andrew Murray
fc57658635 Added PDF creation and modification date info 2018-08-25 00:58:49 +10:00
Andrew Murray
f5740dc305 Set PDF title to filename by default 2018-08-25 00:58:49 +10:00
Andrew Murray
de2fbc9dff Wait until mode is normalized to copy im.info into encoderinfo 2018-08-25 00:55:51 +10:00
Andrew Murray
e98469ecf6 Added transparency to matrix conversion 2018-08-25 00:54:51 +10:00
Andrew Murray
f0a5946c6e Fixed implicit conversion warnings 2018-08-25 00:54:29 +10:00
Andrew Murray
c8e00203ec Removed unnecessary setUp calls 2018-08-25 00:52:14 +10:00