Commit Graph

158 Commits

Author SHA1 Message Date
Eric Soroos
bec8f415be end to end test helper, more end to end tests for tiffs 2017-12-20 11:55:40 +00:00
Hugo
070e66fe7b flake8 2017-12-19 17:16:15 +02:00
Hugo
8adab0ec0d Noise effect: take five pixels, assert not all same 2017-12-19 17:12:58 +02:00
Jon Dufresne
c5a0d72c10 Remove unnecessary bool() calls throughout project
Can use truthy values in boolean expressions without first coercing to a
bool. Removes unnecessary call to bool().
2017-12-16 09:34:12 -08:00
Eric Soroos
5a8fd796e9 install the difference engine 2017-11-17 19:47:05 +00:00
hugovk
cde8c1b560 Improve assert_warning() error message for warn_class=None 2017-09-23 22:36:42 +03:00
hugovk
77f0608c4e Failing test for ResourceWarning on Python 3 2017-09-23 22:36:03 +03:00
wiredfool
ed68328c09 refactored memory leak test case 2017-09-04 09:58:05 +00:00
Andrew Murray
37b293f593 Flake8 fixes 2017-04-20 21:14:23 +10:00
Andrew Murray
0b93853fd8 Removed duplicate imports 2017-03-03 21:38:19 +11:00
wiredfool
8421a076ac Merge pull request #2253 from jdufresne/devnull
Send unwanted subprocess output to /dev/null
2017-02-22 10:10:03 +00:00
Eric Soroos
1b94ff81fe Skip failing QPixmap/QT5 tests on Arch 2017-02-20 08:51:17 -08:00
Jon Dufresne
cecdb2af61 Send unwanted subprocess output to /dev/null
Avoids unnecessary creation of temporary files as well as unnecessarily
storing process output in memory. The temporary files would sometimes
remain and not be cleaned up.
2017-01-26 17:31:29 -08:00
Hugo
bceee54895 Prevent nose -v printing docstrings (#2369) 2017-01-20 19:10:02 +00:00
Andrew Murray
a06dd59df7 Added context managers 2016-12-28 09:54:10 +11:00
Alexander
9ee1f58215 fix I;16 mode 2016-12-07 05:16:10 +03:00
Alexander
ba92896a53 remove old version 2016-12-07 04:39:36 +03:00
Alexander
8967a20ad7 test new assert_image_similar implementation 2016-12-07 03:07:20 +03:00
Jon Dufresne
dbe9f85c7d Drop support for Python 2.6
* Drop unittest2 requirement
* Use set literals
* Use dict/set comprehension
* Use str.format() automatic numbering
2016-11-22 04:23:55 -08:00
Jon Dufresne
ffa5bc2726 Use generator expressions instead of list comprehension
Avoids unnecessary temporary lists in memory.
2016-11-14 18:11:15 -08:00
homm
cdd0624945 improve tests 2016-09-19 03:12:53 +03:00
wiredfool
e980ca7896 Merge pull request #2010 from uploadcare/jpeg-raise-on-alpha
Show warning when trying to save RGBA image as JPEG
2016-08-25 11:41:49 +01:00
homm
193c756139 return implicit RGBA to JPEG save, raise warning 2016-08-09 03:11:35 +03:00
homm
1ba4e9e5ba remove end of file banner from all files 2016-07-10 14:11:28 +03:00
Antony Lee
93abbd0caa Restore legacy TIFF API.
To have the old API that always returns tuples, and fractions as pairs,
set the `legacy_api` attribute of the IFD to True.

This should alleviate concerns about backwards compatibility.
2015-09-11 22:39:37 +01:00
Andrew Murray
bbf3b52357 Flake8 fixes 2015-06-20 14:46:04 +10:00
wiredfool
1086ba9e6e Function rename 2015-06-16 13:35:34 -07:00
wiredfool
0347bcc91d Tests that faill on appveyor CI, but pass on a real machine 2015-06-12 09:56:12 -07:00
Andrew Murray
d1c182cadc Various Flake8 fixes 2015-04-24 09:26:52 +10:00
Alex Clark
9c37a29553 Merge pull request #982 from hugovk/cache
Re-enable test image caching
2015-03-31 21:36:24 -04:00
Andrew Murray
128280e5b8 Fixed duplicate import in Tests helper 2015-04-01 09:56:04 +11:00
homm
a86e032a18 return fresh image is no mode specified and cached version otherwise 2014-11-19 03:41:44 +03:00
hugovk
fb788b85a9 Cache hopper to reduce FS reads and speed up tests 2014-10-29 21:28:29 +02:00
Hugo
ae7b765b53 Fix some Landscape.io errors and warnings 2014-10-01 16:50:33 +03:00
wiredfool
460160a1e3 Updated merge from master 2014-09-26 16:07:52 -07:00
Hugo
0aa48600a2 Add a layer to hopper.psd, because lena.psd had layers 2014-09-23 17:09:43 +03:00
Hugo
5e676ea0bd Merge remote-tracking branch 'upstream/master' into flake8
Conflicts:
	Tests/bench_cffi_access.py
	Tests/test_file_palm.py
	Tests/test_format_hsv.py
	Tests/test_image_putdata.py
	Tests/test_locale.py
	Tests/test_mode_i16.py
2014-09-23 16:35:20 +03:00
Christoph Gohlke
09ba5560d8 On Windows, do not execute convert.exe without specifying path
Convert.exe is a system tool that converts file systems
2014-09-21 17:50:07 -07:00
hugovk
337b222438 Add note to lena()/hopper() functions 2014-09-14 21:44:29 +03:00
hugovk
1de128d6b6 Merge branch 'master' into flake8 2014-09-14 10:23:51 +03:00
hugovk
b929873a62 Change some lena() to hopper() 2014-09-05 12:36:24 +03:00
Hugo
5dd4d6d941 Add hopper() to eventually replace lena() 2014-09-04 08:03:55 +03:00
hugovk
1335006cd7 flake8 2014-08-28 14:44:19 +03:00
wiredfool
94ca2b1076 using skip known bad 2014-07-23 14:31:49 -07:00
wiredfool
ee4793a806 More detail when assert_image_similar fails 2014-07-22 16:09:22 -07:00
hugovk
65cbdae449 Run nose in verbose mode so we can see the tests being run/skipped. Override __str__ in PillowTestCase for nicer output, and make sure all tests are derived from PillowTestCase. 2014-07-20 01:16:51 +03:00
hugovk
cf04a9a0d2 Remove unused tearDownModule 2014-07-07 20:03:50 +03:00
wiredfool
08d491f006 Skip known bad tests 2014-07-05 10:56:40 -07:00
wiredfool
cedd8c2106 Failing test for messed up P image on write only format 2014-07-05 10:25:16 -07:00
wiredfool
acab4e8fdc Cleaned up prints 2014-06-30 15:23:24 -07:00
wiredfool
c824a15fe8 Thread and race condition safe tempfiles for testing 2014-06-30 15:22:36 -07:00
Hugo
d8f55e3f50 Merge pull request #748 from wiredfool/djpeg
Prevent shell injection
2014-06-30 02:16:06 +03:00
wiredfool
2d13166667 Don't print the entire image as bytes on failure 2014-06-29 14:39:32 -07:00
Michael Brown
8b365f542a Skip tests if external commands aren't found 2014-06-27 19:11:01 -04:00
hugovk
f41e0a30fb More tests cleanup 2014-06-25 12:10:20 +03:00
hugovk
78154765ce Update README and remove unnecessary, commented code from helper.py 2014-06-24 14:03:10 +03:00
hugovk
78003ca473 Update paths to Tests/images/ instead of Images/ 2014-06-23 09:19:29 +03:00
hugovk
4dd47fc697 Add test base class and helper functions 2014-06-10 12:12:53 +03:00