Skip to content

Commit

Permalink
test: copying __pycache__ was causing race conditions, and was unneed…
Browse files Browse the repository at this point in the history
…ed anyway.
  • Loading branch information
nedbat committed Jul 8, 2022
1 parent 9297743 commit 8447c99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,11 @@ def setUp(self):
# Since we need to import from there, we also add it to the beginning
# of sys.path.

shutil.copytree(nice_file(TESTS_DIR, "modules"), "tests_dir_modules")
shutil.copytree(
nice_file(TESTS_DIR, "modules"),
"tests_dir_modules",
ignore=shutil.ignore_patterns("__pycache__"),
)
sys.path.insert(0, abs_file("tests_dir_modules"))

def coverage_usepkgs(self, **kwargs):
Expand Down

0 comments on commit 8447c99

Please sign in to comment.