(self)
| 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') |
nothing calls this directly
no test coverage detected