mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Merge
This commit is contained in:
commit
c2faa5b381
1 changed files with 2 additions and 1 deletions
|
@ -960,7 +960,7 @@ class BuiltinTest(unittest.TestCase):
|
|||
self.assertEqual(fp.read(1000), 'YYY'*100)
|
||||
finally:
|
||||
fp.close()
|
||||
unlink(TESTFN)
|
||||
unlink(TESTFN)
|
||||
|
||||
def test_open_default_encoding(self):
|
||||
old_environ = dict(os.environ)
|
||||
|
@ -979,6 +979,7 @@ class BuiltinTest(unittest.TestCase):
|
|||
self.assertEqual(fp.encoding, current_locale_encoding)
|
||||
finally:
|
||||
fp.close()
|
||||
unlink(TESTFN)
|
||||
finally:
|
||||
os.environ.clear()
|
||||
os.environ.update(old_environ)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue