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

Method tearDown

Lib/test/test_io/test_fileio.py:36–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 self.f = self.FileIO(TESTFN, 'w')
35
36 def tearDown(self):
37 if self.f:
38 self.f.close()
39 os.remove(TESTFN)
40
41 def testWeakRefs(self):
42 # verify weak references

Callers

nothing calls this directly

Calls 2

closeMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected