Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d0c827

Browse files
committed
df
1 parent cae16d3 commit 1d0c827

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [ubuntu-latest, windows-latest, macos-13]
23-
version: ["3.9", "3.12"]
23+
version: ["3.9", "3.x"]
2424
defaults:
2525
run:
2626
shell: bash -l {0}

tests/test_project.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,8 +1122,9 @@ def test_write_script(project, request, temp_dir, input_filename: str) -> None:
11221122
assert script_path.exists()
11231123

11241124
# Test we get the project object we expect when running the script
1125-
exec(script_path.read_text())
1126-
new_project = locals()["problem"]
1125+
local_dict = {}
1126+
exec(script_path.read_text(), globals(), local_dict)
1127+
new_project = local_dict["problem"]
11271128

11281129
for class_list in RATapi.project.class_lists:
11291130
assert getattr(new_project, class_list) == getattr(test_project, class_list)

0 commit comments

Comments
 (0)