MCPcopy Index your code
hub / github.com/RustPython/RustPython / setUp

Method setUp

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

Source from the content-addressed store, hash-verified

636# Test attributes on return values from os.*stat* family.
637class StatAttributeTests(unittest.TestCase):
638 def setUp(self):
639 self.fname = os_helper.TESTFN
640 self.addCleanup(os_helper.unlink, self.fname)
641 create_file(self.fname, b"ABC")
642
643 def check_stat_attributes(self, fname):
644 result = os.stat(fname)

Callers

nothing calls this directly

Calls 2

addCleanupMethod · 0.80
create_fileFunction · 0.70

Tested by

no test coverage detected