mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Merge pull request #859 from hugovk/test_file_jpeg2k_tempfile
Use tempfile() instead of /tmp/
This commit is contained in:
commit
5d9107ee4c
|
@ -52,7 +52,8 @@ class TestFileJpeg2k(PillowTestCase):
|
|||
def test_lossless(self):
|
||||
im = Image.open('Tests/images/test-card-lossless.jp2')
|
||||
im.load()
|
||||
im.save('/tmp/test-card.png')
|
||||
outfile = self.tempfile('temp_test-card.png')
|
||||
im.save(outfile)
|
||||
self.assert_image_similar(im, test_card, 1.0e-3)
|
||||
|
||||
def test_lossy_tiled(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user