MCPcopy Index your code
hub / github.com/python/cpython / tearDown

Method tearDown

Lib/test/test_urllib.py:116–119  ·  view source on GitHub ↗

Shut down the open object

(self)

Source from the content-addressed store, hash-verified

114 self.returned_obj = urllib.request.urlopen("file:%s" % self.quoted_pathname)
115
116 def tearDown(self):
117 """Shut down the open object"""
118 self.returned_obj.close()
119 os.remove(os_helper.TESTFN)
120
121 def test_interface(self):
122 # Make sure object returned by urlopen() has the specified methods

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected