We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a91e03d commit f991a18Copy full SHA for f991a18
1 file changed
tests/migrations/test_loader.py
@@ -698,7 +698,9 @@ def test_loading_order_does_not_create_circular_dependency(self):
698
test_settings.write(f"INSTALLED_APPS += {INSTALLED_APPS}\n")
699
700
test_environ = os.environ.copy()
701
- test_environ["PYTHONPATH"] = str(tests_dir)
+ test_python_path = sys.path.copy()
702
+ test_python_path.append(str(tests_dir))
703
+ test_environ["PYTHONPATH"] = os.pathsep.join(test_python_path)
704
# Ensure deterministic failures.
705
test_environ["PYTHONHASHSEED"] = "1"
706
0 commit comments