Skip to content

Commit f991a18

Browse files
authored
Refs #36652, #36936 -- Improved path manipulation in a migration test launching a subprocess.
1 parent a91e03d commit f991a18

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/migrations/test_loader.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,9 @@ def test_loading_order_does_not_create_circular_dependency(self):
698698
test_settings.write(f"INSTALLED_APPS += {INSTALLED_APPS}\n")
699699

700700
test_environ = os.environ.copy()
701-
test_environ["PYTHONPATH"] = str(tests_dir)
701+
test_python_path = sys.path.copy()
702+
test_python_path.append(str(tests_dir))
703+
test_environ["PYTHONPATH"] = os.pathsep.join(test_python_path)
702704
# Ensure deterministic failures.
703705
test_environ["PYTHONHASHSEED"] = "1"
704706

0 commit comments

Comments
 (0)