wiredfool
3bf375c5f7
Merge branch 'master' into terseus_imagedraw
2014-06-30 14:24:59 -07:00
Hugo
d8f55e3f50
Merge pull request #748 from wiredfool/djpeg
...
Prevent shell injection
2014-06-30 02:16:06 +03:00
Hugo
5833ecb4d6
Merge pull request #749 from wiredfool/helper
...
Helper Tweak
2014-06-30 01:17:24 +03:00
wiredfool
2d13166667
Don't print the entire image as bytes on failure
2014-06-29 14:39:32 -07:00
wiredfool
118a2d5ff0
Merge pull request #745 from gcq/master
...
Handle resolution in BMP files
2014-06-29 13:32:02 -07:00
gcq
92b070ceaf
Addes tests
2014-06-28 23:22:52 +02:00
hugovk
d5bb962f83
Add test to ensure a Pyroma is a 10/10 Mascarpone
2014-06-28 23:48:14 +03:00
Michael Brown
8b365f542a
Skip tests if external commands aren't found
2014-06-27 19:11:01 -04:00
Michael Brown
d283f77884
Tests for _save_netpbm, _save_cjpeg and load_djpeg
2014-06-27 19:07:20 -04:00
wiredfool
3f5b15ff31
Merge pull request #735 from hugovk/test_cleanup
...
Remove old, unused cms_test.py
2014-06-27 09:57:20 -07:00
Alex Clark
a45c8aaf61
Fix error(s)
2014-06-27 08:45:39 -04:00
Alex Clark
2effb0d429
Fix error(s)
2014-06-27 08:44:53 -04:00
Alex Clark
2670204dbd
Clean up
2014-06-27 08:44:28 -04:00
Alex Clark
2004fd0845
Prefer rst
2014-06-27 08:43:44 -04:00
hugovk
44e91e668d
Remove old, unused test
2014-06-27 11:29:30 +03:00
wiredfool
d79d28152b
Merge pull request #728 from hugovk/test_cleanup
...
Old tests cleanup
2014-06-26 22:58:35 -07:00
David Joy
b147dea535
Add tests and fix a 16bit vs 32bit integer bug
...
Yay unit tests!
2014-06-25 14:06:56 -04:00
hugovk
d391390e3f
Second test is meant to have two XDIMs ( #728 ). Also use lowercase for parameters.
2014-06-25 19:27:43 +03:00
hugovk
5993b97cb0
Remove last dependencies on tester.py and remove file
2014-06-25 12:46:52 +03:00
hugovk
cf07aa60a1
Convert large_memory_numpy_test.py to use unittest (and change second XDIM on line 36 to YDIM)
2014-06-25 12:43:01 +03:00
hugovk
c6386a294d
Convert large_memory_test.py to use unittest (and change second XDIM on line 30 to YDIM)
2014-06-25 12:32:52 +03:00
hugovk
3b3fc441b1
flake8 Tests/make_hash.py
2014-06-25 12:25:51 +03:00
hugovk
1bbe850f5b
Convert bench_cffi_access.py to use unittest and helper.py
2014-06-25 12:19:27 +03:00
hugovk
f41e0a30fb
More tests cleanup
2014-06-25 12:10:20 +03:00
wiredfool
a990af1b97
Merge from master
2014-06-24 16:48:38 -07:00
Alex Clark ☺
7d232a3c32
Merge pull request #719 from wiredfool/imagepalette
...
Tests for Imagepalette.save()
2014-06-24 13:41:32 -04:00
wiredfool
5b4d5148af
Added roundtrip test for ImagePalette.save
2014-06-24 09:58:53 -07:00
hugovk
ffce319b54
Change Tests/README.txt to .md [CI skip]
2014-06-24 14:04:47 +03:00
hugovk
78154765ce
Update README and remove unnecessary, commented code from helper.py
2014-06-24 14:03:10 +03:00
Alex Clark ☺
ca148208f0
Merge pull request #716 from hugovk/morph_flake8
...
Flake8 on morphology changes
2014-06-24 05:51:04 -04:00
Alex Clark ☺
88bfd5522d
Merge pull request #714 from wiredfool/jpeg_qtables
...
JPEG qtables
2014-06-24 05:48:17 -04:00
Hugo
0cd52412b1
Merge pull request #654 from wiredfool/cleanup
...
Thanks.
2014-06-24 12:16:13 +03:00
hugovk
494bffd216
Make test runnable on its own
2014-06-24 10:01:43 +03:00
hugovk
fd97d30831
flake8 on morphology changes
2014-06-24 09:34:05 +03:00
wiredfool
cf828f7612
Converted to unittest framework to deal with test framework error
2014-06-23 16:52:10 -07:00
wiredfool
6dce921dad
Merge branch 'master' into morphology
2014-06-23 16:21:33 -07:00
hugovk
b7f14415d8
Constants are now ALL CAPS
2014-06-23 22:51:31 +03:00
Alex Clark ☺
6cc9e05f2a
Merge pull request #709 from Terseus/fix-latest-imagedraw-tests
...
Fixed variables misprint in ImageDraw tests
2014-06-23 14:39:18 -04:00
Alex Clark
2ccd76e66f
Fix path
2014-06-23 14:38:03 -04:00
Terseus
5522fa472d
Fixed variables misprint in ImageDraw tests
2014-06-23 20:07:09 +02:00
Alex Clark ☺
2a657f7873
Merge pull request #674 from hugovk/bomb
...
Decompression bomb protection
2014-06-23 12:27:01 -04:00
hugovk
1633ffa878
Merge branch 'cleanup' of https://github.com/wiredfool/Pillow into wiredfool-cleanup
...
Conflicts:
Tests/test_file_jpeg2k.py
Tests/test_image_transform.py
Tests/test_imagesequence.py
2014-06-23 13:39:27 +03:00
hugovk
282281f1e5
Reset limit in tearDown()
2014-06-23 11:22:25 +03:00
hugovk
7b3e242f09
Convert test_decompression_bomb.py to use unittest module
2014-06-23 11:12:41 +03:00
hugovk
46abe78b77
Use a custom subclass of RuntimeWarning for DecompressionBombWarning
2014-06-23 10:53:08 +03:00
hugovk
195453679a
Merge branch 'master' into bomb
...
Conflicts:
PIL/Image.py
2014-06-23 09:51:46 +03:00
hugovk
78003ca473
Update paths to Tests/images/ instead of Images/
2014-06-23 09:19:29 +03:00
hugovk
a600f84029
Move images from Images/ to Tests/images/
2014-06-23 09:04:23 +03:00
wiredfool
dfe7ff515f
Additional jpeg qtables tests
2014-06-20 01:09:59 -07:00
wiredfool
fcd4c662bf
Fixed JPEG qtables test
2014-06-20 00:41:58 -07:00
wiredfool
9935c40d6c
Merge branch 'master' into jpeg_qtables
2014-06-20 00:35:06 -07:00
wiredfool
7dc4dcc9fd
Merge from master
2014-06-20 00:34:32 -07:00
wiredfool
cf56ccc828
Working on python 2.6
2014-06-19 15:17:00 -07:00
wiredfool
b8834fa3a6
Additional tests, tests in functions
2014-06-19 14:55:43 -07:00
wiredfool
0b0ec8b40f
Proper skipping of tests when lcms2 is not installed
2014-06-19 06:06:23 -07:00
hugovk
7794831704
Bring back tester.py for now. Not using it for unit tests.
2014-06-10 13:36:38 +03:00
hugovk
1686016f1c
Remove old tester.py so it's not picked up by nosetests as a test
2014-06-10 12:20:51 +03:00
hugovk
4dd47fc697
Add test base class and helper functions
2014-06-10 12:12:53 +03:00
hugovk
3ec505958e
Convert old tests to use unittest
2014-06-10 12:10:47 +03:00
hugovk
c66f332679
Remove empty tests
2014-06-10 12:09:47 +03:00
hugovk
e8ef927bac
Remove test_001_archive.py as it doesn't do anything: ../pil-archive/* doesn't exist
2014-06-10 12:05:46 +03:00
hugovk
995f367755
Skip test_floodfill_border() on PyPy to avoid fatal error
2014-06-06 08:02:18 +03:00
Alex Clark ☺
841582fa26
Merge pull request #685 from hugovk/docstring
...
ImageCms fixes
2014-06-04 18:31:40 -04:00
Dov Grobgeld
5fe80c6d4a
Initial commit of binary morphology addon.
2014-06-04 23:03:00 +03:00
wiredfool
618a79c1c6
Merge from master, pre-unittest conversion
2014-06-03 14:42:22 -07:00
hugovk
c9a4272af6
Replace python-imaging with python-pillow (but yet not Coveralls)
2014-06-03 13:02:44 +03:00
hugovk
6115d348b9
Add more tests for ImageCms
2014-06-02 13:19:01 +03:00
hugovk
9e984a19b1
Add more tests for ImageCms
2014-06-02 13:00:21 +03:00
hugovk
e983057294
pep8/pyflakes
2014-06-02 12:41:48 +03:00
wiredfool
5b73d8f57b
Merge pull request #661 from hugovk/test_imagedraw
...
Add more ImageDraw tests
2014-06-01 09:09:58 -07:00
wiredfool
60e2eaa5e9
Merge pull request #680 from hugovk/spider
...
Add tests for SPIDER image files
2014-05-30 08:46:33 -07:00
Chris Sinchok
70a50907c2
This patch allows a JPEG image to be saved with a specific qtables
...
value (in dictionary format).
Previously, this would throw a TypeError when checking if the qtables
value was actually a preset. By adding an isStringType check, we can
avoid this error.
2014-05-28 17:21:58 -05:00
hugovk
ae37743ac7
Both kinds of bounding box for arc, chord and pieslice.
2014-05-27 23:31:31 +03:00
hugovk
fd05e9c756
Test decompression bomb warnings
2014-05-27 12:40:52 +03:00
hugovk
14c8d8afe4
More spider tests
2014-05-26 21:00:20 +03:00
hugovk
268c419d7c
Simple spider test. Test image created with Pillow.
2014-05-26 20:09:12 +03:00
hugovk
8f92562ec3
Remove old FIXME comment [CI skip]
2014-05-24 17:36:31 +03:00
hugovk
35336e5afd
Test arc, chord, pieslice give TypeError when bounding box is [(x0, y0), (x1, y1)]
2014-05-24 17:31:37 +03:00
wiredfool
26b0f20763
Merge pull request #669 from wiredfool/tiff_compression
...
Use libtiff for writing any compressed tiff files
2014-05-24 13:16:57 +01:00
wiredfool
a91387e9dd
Merge pull request #673 from wiredfool/pickling
...
Support for pickling Image objects
2014-05-24 13:14:42 +01:00
wiredfool
3f18e0adfe
Merge pull request #619 from eliempje/master
...
Bugfix: EPS thumbnail failed
2014-05-24 13:09:25 +01:00
wiredfool
cd17b66541
Merge pull request #647 from hugovk/house
...
Fix for junk JPEG data
2014-05-23 00:06:09 +01:00
hugovk
0c1c620e30
Add test for #647 . Fails without fix.
2014-05-21 14:33:28 +03:00
hugovk
aed2646dc2
pep8/pyflakes
2014-05-21 14:32:24 +03:00
hugovk
9c048e44d1
Permission to use and distribute (under the MIT license) this image as a testfile granted by cepreu2github: https://github.com/python-imaging/Pillow/issues/630#issuecomment-43674288
2014-05-21 14:30:05 +03:00
wiredfool
3b227d1a05
Merge from current master
2014-05-20 11:47:53 -07:00
wiredfool
413a086c09
Remove READ|WRITE_LIBTIFF guards for LZW/packbits compression tests
2014-05-20 10:13:58 -07:00
wiredfool
8d4a77a939
merge from master
2014-05-20 08:58:09 -07:00
hugovk
a59bc40c38
flake8
2014-05-17 23:33:50 +03:00
hugovk
55b1accb42
Add (failing) test for #664
2014-05-17 19:08:08 +03:00
eliempje
a712cec02b
Added test and testfile for issue #302
2014-05-14 23:14:55 +02:00
hugovk
60b2570133
Test ImageDraw's bitmap()
2014-05-13 14:43:48 +03:00
hugovk
5b55cb72d3
Test experimental floodfill with a border
2014-05-12 23:33:05 +03:00
hugovk
961db29ff6
Test experimental floodfill()
2014-05-12 23:27:02 +03:00
hugovk
6b274b4c5e
More ImageDraw tests. Some may need redoing after issues #367 and #463 are sorted.
2014-05-12 21:45:16 +03:00
hugovk
84c7d25606
Make sure bounding box in ints (for Py3)
2014-05-12 19:55:18 +03:00
hugovk
92eea7a9cc
Tests for ImageDraw
2014-05-12 17:32:04 +03:00
hugovk
8cda5170c8
Fix bytes/str and reinstate test
2014-05-12 14:45:54 +03:00
hugovk
c37aa0a9ca
Fix tostring()/tobytes() warning and reinstate test
2014-05-12 14:30:03 +03:00
hugovk
bcb8534dcf
Temporarily remove 'failing' 1-mode PDF test
2014-05-11 17:46:13 +03:00
hugovk
741297326a
Temporarily remove 'failing' 1-mode PDF test
2014-05-11 17:41:07 +03:00
hugovk
6520004289
Add monochrome PDF test
2014-05-11 17:35:49 +03:00
hugovk
8f1a00ae92
Temporarily remove failing P-mode PDF test
2014-05-11 17:28:41 +03:00
hugovk
3e2ff13aa8
Fix CMYK test
2014-05-11 17:23:10 +03:00
hugovk
c15601e0b0
Add some more pdf tests
2014-05-11 17:16:13 +03:00
hugovk
f165d2034f
Simple test for saving to PDF
2014-05-11 09:01:09 +03:00
wiredfool
54173d2c67
Cherry-pick of portions of patch a500ca1393
, many shortcut ops added, no functional changes
2014-05-09 21:36:15 -07:00
wiredfool
471a1420b9
Merge commit '329fd00d3fe2709c043c73e075da03b6d9729a2b' into cleanup
2014-05-09 20:53:06 -07:00
hugovk
5f195ae1a7
On Py3.4, a PendingDeprecationWarning comes from Coverage.py for using the imp module. This warning causes 3.4 builds to fail so ignore the warning from importing coverage.
2014-05-09 11:41:43 +03:00
hugovk
11227e5dc1
Fix test because thumbnail() retains aspect ratio
2014-05-08 23:01:44 +03:00
Hugo
7a9badf18e
Fix tests so image2 is resized and thumbnailed
2014-05-08 22:44:46 +03:00
hugovk
23eb9e1de8
Thumbnail tests for https://github.com/python-imaging/Pillow/pull/619
2014-05-08 11:45:02 +03:00
hugovk
134295bfd4
Resize tests for https://github.com/python-imaging/Pillow/pull/619 (plus flake8)
2014-05-08 11:43:04 +03:00
hugovk
a7d21dec15
Remove temp test code
2014-04-26 20:41:01 +03:00
hugovk
7d1cdc54c4
Don't skip all the tests on Python 3 when there's no cPickle, just the irrelevant test
2014-04-26 20:20:42 +03:00
hugovk
8794c46318
For pickling, test with Image's __eq__. Everything else can use the old assert_image_equal.
2014-04-26 20:05:02 +03:00
hugovk
2a6f2c5442
Add __eq__ and __ne__ to Image to be able to test image equality when pickling. Pickle more data.
2014-04-26 19:43:53 +03:00
hugovk
e4185694a2
P3 will skip explicit cPickle tests
2014-04-22 09:30:15 +03:00
hugovk
adfbe8323a
Tests and partial implementation of pickling ( #629 )
2014-04-22 08:54:16 +03:00
wiredfool
5ca5652d0b
Merge pull request #551 from wiredfool/with
...
Image.close, Context manager support
2014-04-17 22:20:30 -07:00
wiredfool
471cecb523
tests for close and context manager
2014-04-17 22:01:55 -07:00
wiredfool
ca36b6cd36
Merge pull request #606 from wiredfool/pgm
...
16 bit Read/Write PGM support.
2014-04-17 12:22:18 -07:00
wiredfool
1945fd6cb4
Merge pull request #618 from hugovk/master
...
Add version 0.30 of OleFileIO (2014-02-04)
2014-04-17 12:19:03 -07:00
wiredfool
aba195d35e
Tests for #614
2014-04-14 06:13:57 -07:00
hugovk
329fd00d3f
Test j2k
2014-04-14 13:49:29 +03:00
wiredfool
189c40dc9e
Merge branch 'patch-1' of https://github.com/Hijackal/Pillow into Hijackal-patch-1
2014-04-14 03:15:38 -07:00
hugovk
7ba5962512
Fix typo and update test
2014-04-14 00:27:08 +03:00
hugovk
6ff77414b3
Test some debug functions. No asserts, just check they run ok.
2014-04-14 00:05:31 +03:00
hugovk
949e87e55d
Remove 'failing' test_debug()
2014-04-13 23:28:41 +03:00
hugovk
f40cf7870f
More testing
2014-04-13 23:16:01 +03:00
hugovk
bfc05b7a8c
Handle bytes in test for Py2 and 3
2014-04-11 15:02:42 +03:00
hugovk
2271ee6f65
Add some simple tests for OleFileIO.py
2014-04-11 14:53:33 +03:00
hijackal
7f164d641f
Test image: TIFF for OPEN_INFO = {(II, 0, 3, 1, (32,), ()): ("F", "F;32F")}
2014-04-11 11:39:05 +02:00
hugovk
9c6b07d21b
Remove temporary forced failure
2014-04-11 10:59:58 +03:00
hugovk
cf6daf03fe
Use correct brackets
2014-04-11 10:47:37 +03:00
hugovk
267cdf523e
Print out lists of failed tests (and temporarily force a failure for testing)
2014-04-11 10:28:06 +03:00
Terseus
113b8c2a76
Removed non-ASCII character from messages
2014-04-09 20:06:58 +02:00
Terseus
b987d90568
Added tests for lines with 1px slope
...
This tests are designed to guarantee that the wide lines behave exactly
like normal lines drawn with the Bresenham's algorithm.
This tests are somewhat subjective since this is non-defined behavior,
but I think that mimic the Bresenham's algorithm is reliable enough.
Currently the horizontal version of this test **fail**.
2014-04-09 19:34:50 +02:00
Terseus
4b7236f460
Added tests of hor/ver lines 101px wide
...
These tests should guarantee that the proportion of the width is
maintained with a margin of error < 1%.
2014-04-09 19:34:50 +02:00
Terseus
8228caf14d
Added some oblique 45º lines tests
...
Only the oblique 3 pixels wide lines are defined:
* The oblique 2 pixels wide lines are somewhat hard to define.
* To define the oblique lines wider than 3 pixels we neet to define
first how the oblique lines should expand their width (realistic or
exact).
2014-04-09 19:33:46 +02:00
hugovk
9210f88102
Start coverage measurement earlier so tests are properly covered
2014-04-08 17:20:52 +03:00
hugovk
5afdd6cb54
pep8 Tests/tester.py
2014-04-08 17:17:10 +03:00
hugovk
ed00b2e6d2
Read existing data coverage on measurement start, save on stop. Only measure PIL code.
2014-04-08 12:38:30 +03:00
hugovk
3e9cde4412
Use tester.py's built-in coverage and coverage.py's built-in cleanup
2014-04-08 12:28:00 +03:00
wiredfool
2daac27713
Tests for writing hi bit pgm
2014-04-07 22:22:42 -07:00
wiredfool
864fb95cb1
Read test for 16 bit binary pgm file, #602
2014-04-07 22:10:45 -07:00
Terseus
92dd58c014
Added descriptive errors to imagedraw tests
2014-04-06 14:03:03 +02:00
wiredfool
82d7524add
made has_ghostscript a method, using it from test_imagefile
2014-04-04 13:33:54 -07:00
Terseus
1c02d467ef
Added test for vertical lines.
...
The behavior is consistent with horizontal lines, see previous commit
for details.
2014-04-04 12:45:47 +02:00
Terseus
fee2faa8dc
Added test for horizontal lines
...
Notice that the expansion of the line width depends on the order of the
points:
* If the bigger axis value is provided as the *second* point the line
expand first to the *positive* side of the axis.
* If the bigger axis value is provided as the *first* point the line
expand first to the *negative* side of the axis.
* If the line's width is odd this doesn't matter, as the line will
expand the same amount to both sides.
This behavior should be consistent in both horizontal and vertical lines.
2014-04-04 12:35:26 +02:00