Skip to content

Commit

Permalink
shutil is bugged on old versions of python 3.8 python/cpython#5393
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Jul 17, 2024
1 parent 7d1d5f1 commit 62c7c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def setUp(self):
self.tmp_dir = tempfile.TemporaryDirectory()
self.repo_dir: Path = files('pynwb') / 'nwb-schema'
if self.repo_dir.exists():
shutil.move(self.repo_dir, self.tmp_dir.name)
self.repo_dir.rename(self.tmp_dir.name)

# remove cache files if they exist
self.typemap_cache = Path(files('pynwb') / 'core_typemap.pkl')
Expand All @@ -31,7 +31,7 @@ def tearDown(self) -> None:
# move the old repository back
if self.repo_dir.exists():
shutil.rmtree(self.repo_dir)
shutil.move(Path(self.tmp_dir.name) / 'nwb-schema', self.repo_dir)
(Path(self.tmp_dir.name) / 'nwb-schema').rename(self.repo_dir)

def test_clone_on_import(self):
"""
Expand Down

0 comments on commit 62c7c6f

Please sign in to comment.