mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Move restoration of the os.environ object into the context manager where it belongs
This commit is contained in:
parent
87c03b3108
commit
fd4903bf05
2 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,6 @@ class BaseTestCase(unittest.TestCase):
|
|||
self.lock.release()
|
||||
self.thread.stop()
|
||||
os.environ.__exit__()
|
||||
os.environ = os.environ._environ
|
||||
|
||||
def request(self, uri, method='GET', body=None, headers={}):
|
||||
self.connection = httplib.HTTPConnection('localhost', self.PORT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue