Use tempfile() instead of /tmp/

This commit is contained in:
Hugo 2014-08-20 00:13:30 +03:00
parent 30979d4dd4
commit 74f45d4e12

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('test-card.png')
im.save(outfile)
self.assert_image_similar(im, test_card, 1.0e-3)
def test_lossy_tiled(self):