mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-15 02:50:53 +03:00
Use tempfile() instead of /tmp/
This commit is contained in:
parent
30979d4dd4
commit
74f45d4e12
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user