]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #22390: Fix test_gzip, remove temporary file
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 29 Mar 2015 23:32:42 +0000 (01:32 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 29 Mar 2015 23:32:42 +0000 (01:32 +0200)
Lib/test/test_gzip.py

index 41857c7f83f718f46ec725fa2e92cbd4402f1dfc..95f51411a104da5265d55b485205447deb07ffc0 100644 (file)
@@ -41,6 +41,7 @@ class TestGzip(unittest.TestCase):
     @test_support.requires_unicode
     def test_unicode_filename(self):
         unicode_filename = test_support.TESTFN_UNICODE
+        self.filename = unicode_filename
         try:
             unicode_filename.encode(test_support.TESTFN_ENCODING)
         except (UnicodeError, TypeError):