Skip to content

Commit 6c05f47

Browse files
committed
fix
1 parent a00028f commit 6c05f47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,8 @@ def test_write_script(project, request, temp_dir, input_filename: str) -> None:
11221122
assert script_path.exists()
11231123
print(script_path.read_text())
11241124
# Test we get the project object we expect when running the script
1125-
exec(script_path.read_text())
1125+
with open(script_path, "r") as f:
1126+
exec(f.read())
11261127
print(locals)
11271128
new_project = locals()["problem"]
11281129

0 commit comments

Comments
 (0)