(self)
| 2043 | self.assertTrue(os.path.isfile('test.zip')) |
| 2044 | |
| 2045 | def test_make_archive_pathlike_cwd_default(self): |
| 2046 | called_args = [] |
| 2047 | def archiver(base_name, base_dir, **kw): |
| 2048 | called_args.append((base_name, kw.get('root_dir'))) |
| 2049 | |
| 2050 | register_archive_format('xxx', archiver, [], 'xxx file') |
| 2051 | self.addCleanup(unregister_archive_format, 'xxx') |
| 2052 | with no_chdir: |
| 2053 | make_archive(FakePath('basename'), 'xxx') |
| 2054 | self.assertEqual(called_args, [('basename', None)]) |
| 2055 | |
| 2056 | def test_make_archive_pathlike_cwd_supports_root_dir(self): |
| 2057 | root_dir = self.mkdtemp() |
nothing calls this directly
no test coverage detected