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

Method tearDown

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

Source from the content-addressed store, hash-verified

120 os.chdir(self.temp_dir)
121
122 def tearDown(self):
123 os.chdir(self.old_dir)
124 for root, dirs, files in os.walk(self.temp_dir, topdown=False):
125 for name in files:
126 os.chmod(os.path.join(self.temp_dir, name), stat.S_IWRITE)
127 shutil.rmtree(self.temp_dir, True)
128
129 def create_writable_file(self, filename):
130 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