Skip to content

Commit 0d2d104

Browse files
authored
fix: Copy env for nightly (#186)
1 parent 71836d2 commit 0d2d104

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/utils/test_usage_tracker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ def create_test_file(code: str, function_name: str, file_path: str):
7272
def test_usage_detection(function, path, expected, test_model, create_cli_mock):
7373
test_path = TEST_FOLDER + path
7474
create_test_file(test_model, function, test_path)
75+
env = os.environ.copy()
7576
result = run(
7677
["python3", test_path],
7778
stdout=PIPE,
7879
stderr=PIPE,
79-
env={"PYTHONPATH": os.getenv("PYTHONPATH", ""), "PATH": os.getenv("PATH", "")},
80+
env=env,
8081
)
8182
assert not result.stderr
8283
assert expected in result.stdout.decode("utf-8")

0 commit comments

Comments
 (0)