Skip to content

Commit 8447c99

Browse files
committed
test: copying __pycache__ was causing race conditions, and was unneeded anyway.
1 parent 9297743 commit 8447c99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_api.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,11 @@ def setUp(self):
866866
# Since we need to import from there, we also add it to the beginning
867867
# of sys.path.
868868

869-
shutil.copytree(nice_file(TESTS_DIR, "modules"), "tests_dir_modules")
869+
shutil.copytree(
870+
nice_file(TESTS_DIR, "modules"),
871+
"tests_dir_modules",
872+
ignore=shutil.ignore_patterns("__pycache__"),
873+
)
870874
sys.path.insert(0, abs_file("tests_dir_modules"))
871875

872876
def coverage_usepkgs(self, **kwargs):

0 commit comments

Comments
 (0)