From 957c4cbb435853763e235dd1d5bb450d6afb32f6 Mon Sep 17 00:00:00 2001 From: Henri Chain Date: Tue, 24 May 2016 11:40:40 +0200 Subject: [PATCH] fix hdr-specific typo --- test/test_foreign.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_foreign.py b/test/test_foreign.py index b860a9fb..740d34e0 100755 --- a/test/test_foreign.py +++ b/test/test_foreign.py @@ -111,9 +111,9 @@ class TestForeign(unittest.TestCase): self.assertEqual(im.bands, x.bands) self.assertLessEqual((im - x).abs().max(), max_diff) - def save_buffer_tempfile(self, saver, format, im, max_diff = 0): + def save_buffer_tempfile(self, saver, suf, im, max_diff = 0): buf = Vips.call(saver, im) - f = NamedTemporaryFile(suffix=".hdr", delete=False) + f = NamedTemporaryFile(suffix=suf, delete=False) f.write(buf) x = Vips.Image.new_from_file(f.name) @@ -464,7 +464,7 @@ class TestForeign(unittest.TestCase): return self.save_load("%s.hdr", self.colour) - self.save_buffer_tempfile("radsave_buffer", "%s.hdr", self.rad, max_diff = 0) + self.save_buffer_tempfile("radsave_buffer", ".hdr", self.rad, max_diff = 0) def test_dzsave(self): x = Vips.type_find("VipsForeign", "dzsave")