[Python-checkins] cpython (3.5): Don't create non-needed file.

serhiy.storchaka python-checkins at python.org
Sun Dec 20 02:44:43 EST 2015


https://hg.python.org/cpython/rev/ad25fdb6c521
changeset:   99638:ad25fdb6c521
branch:      3.5
parent:      99634:a1388dbdd293
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Sun Dec 20 09:37:52 2015 +0200
summary:
  Don't create non-needed file.

files:
  Lib/test/test_sys.py |  5 -----
  1 files changed, 0 insertions(+), 5 deletions(-)


diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -814,11 +814,6 @@
         self.longdigit = sys.int_info.sizeof_digit
         import _testcapi
         self.gc_headsize = _testcapi.SIZEOF_PYGC_HEAD
-        self.file = open(test.support.TESTFN, 'wb')
-
-    def tearDown(self):
-        self.file.close()
-        test.support.unlink(test.support.TESTFN)
 
     check_sizeof = test.support.check_sizeof
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list