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

Method test_concurrent_extract_dir

Lib/test/archiver_tests.py:158–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

156 self.assertFalse(os.path.exists(target2))
157
158 def test_concurrent_extract_dir(self):
159 target = os.path.join(self.testdir, 'test')
160 def concurrent_mkdir(*args, **kwargs):
161 orig_mkdir(*args, **kwargs)
162 orig_mkdir(*args, **kwargs)
163 with swap_attr(os, 'mkdir', concurrent_mkdir) as orig_mkdir:
164 with self.open(self.ar_with_dir) as ar:
165 self.extractall(ar)
166 self.assertTrue(os.path.isdir(target))
167
168 def test_concurrent_extract_implicit_dir(self):
169 target = os.path.join(self.testdir, 'test')

Callers

nothing calls this directly

Calls 6

openMethod · 0.95
extractallMethod · 0.95
swap_attrFunction · 0.90
assertTrueMethod · 0.80
joinMethod · 0.45
isdirMethod · 0.45

Tested by

no test coverage detected