From 74f45d4e12e3a5b9b74a1038de6fd8af600860ac Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 20 Aug 2014 00:13:30 +0300 Subject: [PATCH] Use tempfile() instead of /tmp/ --- Tests/test_file_jpeg2k.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/test_file_jpeg2k.py b/Tests/test_file_jpeg2k.py index a0e7dfb53..fcd4b9d4d 100644 --- a/Tests/test_file_jpeg2k.py +++ b/Tests/test_file_jpeg2k.py @@ -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):