Skip to content

Commit 627489e

Browse files
fix: Report tests with installation
1 parent 99fb559 commit 627489e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_report.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ def test_create_ansys_report_empty():
3636
# Assert some of its information
3737
#
3838
# CPU Count
39-
os.environ.pop("ANSYS_LOCAL", None) # Remove the ANSYS_LOCAL env var if it exists
39+
ans_local = os.environ.pop("ANSYS_LOCAL", None) # Remove the ANSYS_LOCAL env var if it exists
40+
if ans_local is not None:
41+
os.environ.pop("ANSYS_VERSION")
42+
os.environ.pop("AWP_ROOT222")
4043
assert rep.cpu_count == multiprocessing.cpu_count()
4144
# Architecture
4245
assert rep.architecture == platform.architecture()[0]

0 commit comments

Comments
 (0)