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

Method tearDown

Lib/test/test_argparse.py:102–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

100 os.chdir(self.temp_dir)
101
102 def tearDown(self):
103 os.chdir(self.old_dir)
104 for root, dirs, files in os.walk(self.temp_dir, topdown=False):
105 for name in files:
106 os.chmod(os.path.join(self.temp_dir, name), stat.S_IWRITE)
107 shutil.rmtree(self.temp_dir, True)
108
109 def create_writable_file(self, filename):
110 file_path = os.path.join(self.temp_dir, filename)

Callers

nothing calls this directly

Calls 3

walkMethod · 0.45
chmodMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected