Merge pull request #859 from hugovk/test_file_jpeg2k_tempfile

Use tempfile() instead of /tmp/
This commit is contained in:
wiredfool 2014-08-20 09:34:59 -07:00
commit 5d9107ee4c

View File

@ -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):