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

Method setUp

Lib/test/test_os/test_os.py:640–643  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

638# Test attributes on return values from os.*stat* family.
639class StatAttributeTests(unittest.TestCase):
640 def setUp(self):
641 self.fname = os_helper.TESTFN
642 self.addCleanup(os_helper.unlink, self.fname)
643 create_file(self.fname, b"ABC")
644
645 def check_timestamp_agreement(self, result, names):
646 # Make sure that the st_?time and st_?time_ns fields roughly agree

Callers

nothing calls this directly

Calls 2

addCleanupMethod · 0.80
create_fileFunction · 0.70

Tested by

no test coverage detected