Skip to content

Commit d9d7d6b

Browse files
committed
Close the context-manager. Address the env changed warning in the CI.
1 parent 38cc5a7 commit d9d7d6b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Lib/test/test_urllib2.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,7 @@ def test_digest_auth_failure_code(self):
18881888
"www.example.com",
18891889
req, headers)
18901890
self.assertEqual(cm.exception.code, code)
1891+
cm.exception.close()
18911892

18921893
def test_unsupported_auth_basic_handler(self):
18931894
# While using BasicAuthHandler

0 commit comments

Comments
 (0)