Commit Graph

99 Commits

Author SHA1 Message Date
Andrew Murray
0c0f769351 Allow EPS tests that do not require Ghostscript 2018-12-30 20:50:09 +11:00
Hugo
4352edb1ec Assert all images in loop 2018-10-24 22:29:01 +03:00
Jon Dufresne
1ba14783d2 Avoid deprecated 'U' mode when opening files
Instead, use PSFile() wrapper to handle all newline in the EPS spec.

Update line ending tests to handle all combinations of '\n' and '\r'.

Fixes warning "DeprecationWarning: 'U' mode is deprecated" in tests.
2018-07-01 08:07:59 -07:00
Hugo
04a1f71b4c
Merge pull request #3105 from radarhere/py3
Change Python version checks to use util
2018-04-22 18:37:33 +03:00
Andrew Murray
b4e6cdadac Added py3 variable to _util 2018-04-20 09:19:13 +10:00
Andrew Murray
b560f5b417 Changed Python version checks in tests to use helper 2018-04-19 19:40:56 +10:00
Andrew Murray
37f5f1120a Fixed block comments 2018-04-18 16:00:57 +10:00
Andrew Murray
e107ed6fcf Allow for an empty line in EPS header data 2017-12-24 21:12:48 +11:00
Eric Soroos
e5aa9d5f8b Bumped epsilon -- arch is showing 5.6 rather than <5 2017-12-19 16:20:36 +00:00
Eric Soroos
636e5ff1e9 Relaxing similarity on showpage test, Arch has rendering differences 2017-11-01 14:05:40 +00:00
Eric Soroos
c42867fa2c Added expected result, renamed images 2017-09-09 12:01:38 +00:00
Samuele Kaplun
c07ce878d7 Fix EPS import
Fixes EPS import by adding the missing "showpage" Postscript command
to the end of the gs call.

See: https://bugs.ghostscript.com/show_bug.cgi?id=698272

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
2017-09-09 12:01:38 +00:00
Andrew Murray
9e843a2d9b Changed format of lambda calls 2017-09-01 21:05:40 +10:00
Andrew Murray
257bc8bd4f Added tests 2017-03-03 19:45:55 +11:00
Andrew Murray
72d5218080 Flake8 fixes 2016-09-03 12:17:22 +10:00
homm
1ba4e9e5ba remove end of file banner from all files 2016-07-10 14:11:28 +03:00
wiredfool
13b8c1c70b test the output for a CMYK EPS image 2016-05-26 22:06:10 +01:00
Andrew Murray
392d567352 Added CMYK mode for opening EPS files 2016-04-13 18:27:46 +10:00
Andrew Murray
0eabe68882 Added test 2015-10-12 23:13:45 +11:00
Andrew Murray
309ab1fc3d Various Flake8 fixes 2015-07-03 16:22:56 +10:00
Andrew Murray
a06b59bd52 Added various tests 2015-07-03 15:03:25 +10:00
Andrew Murray
26bcc443d1 Specified exception types 2015-05-30 09:18:27 +10:00
Andrew Murray
d1c182cadc Various Flake8 fixes 2015-04-24 09:26:52 +10:00
hugovk
883858151d Simple test for 1104 2015-03-26 14:05:17 +02:00
Hugo
ae7b765b53 Fix some Landscape.io errors and warnings 2014-10-01 16:50:33 +03:00
wiredfool
ce0fcef580 Don't test internal python functions 2014-09-12 21:41:12 -07:00
wiredfool
918c77e98a Py3.2 fix 2014-09-02 23:33:10 -07:00
wiredfool
6dc276599e test for all the different line ending characters 2014-09-02 23:20:50 -07:00
wiredfool
e52152baad Test bytesio object 2014-09-02 23:20:16 -07:00
hugovk
cf04a9a0d2 Remove unused tearDownModule 2014-07-07 20:03:50 +03:00
hugovk
3ec505958e Convert old tests to use unittest 2014-06-10 12:10:47 +03:00
eliempje
a712cec02b Added test and testfile for issue #302 2014-05-14 23:14:55 +02: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
wiredfool
82d7524add made has_ghostscript a method, using it from test_imagefile 2014-04-04 13:33:54 -07:00
Alex Clark ☺
5750d5d6ef Merge pull request #474 from sciunto/bool
Maint: minor patch on booleans + travis
2014-01-31 13:16:38 -08:00
cgohlke
5f53d98b8e Add test for issue $479 2014-01-11 12:30:09 -08:00
François Boulogne
ead121d951 MAINT replace is False by not 2014-01-08 22:07:35 -05:00
François Boulogne
980517587d MAINT: use is instead of == for True, False, None 2014-01-07 21:24:21 -05:00
Alex Clark
35f66adbde Remove my inferior gs binary check 2013-12-28 08:53:46 -05:00
Alex Clark ☺
6a52e272cf Merge pull request #420 from wiredfool/gs-test
Skip ghostscript test when gs is missing
2013-12-28 05:52:42 -08:00
Alex Clark
26ec2a09f0 Skip eps file test if no ghostscript 2013-12-28 07:47:09 -05:00
wiredfool
1e41f2dad9 Skip ghostscript test when it's not executable 2013-11-21 14:32:18 -08:00
Esteban Santana Santana
64e53de5c9 Another typo. 2013-11-20 02:25:50 -06:00
Esteban Santana Santana
155239cbc3 Copy paste issue on that last commit. 2013-11-20 02:22:04 -06:00
Esteban Santana Santana
7797633d7a Loosened testing rigor for EPS files.
Due to differences in rendering between platforms (mainly antialiasing), we had to lower the rigor with which we test our EPS handling. Instead of making the test fail if the rendered image does not exactly match, we now only fail if the images are grossly divergent.
2013-11-20 02:14:29 -06:00
Esteban Santana Santana
582d54d055 Test harness for EPS files.
We now have a test harness for EPS files. Two variants were created one for the default scale=1 and one where scale=2. These two tests are run against two different EPS files, one with zero for the start of the bounding box and one where this is not the case. PNG test renders are used to make sure the output match what we expect. Lastly the sample EPS files were generated using the included create_eps.gnuplot file and the gnuplot program on a Mac.
2013-11-20 00:43:10 -06:00