Skip to content

Commit 5ad654c

Browse files
fix: env vars
1 parent 627489e commit 5ad654c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_report.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def test_create_ansys_report_empty():
3737
#
3838
# CPU Count
3939
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")
40+
if ans_local:
41+
os.environ.pop("ANSYS_VERSION", None)
42+
os.environ.pop("AWP_ROOT222", None)
4343
assert rep.cpu_count == multiprocessing.cpu_count()
4444
# Architecture
4545
assert rep.architecture == platform.architecture()[0]

0 commit comments

Comments
 (0)