Skip to content

Commit

Permalink
Only delete keys if they exist, which depending on the invocation the…
Browse files Browse the repository at this point in the history
…y may not.
  • Loading branch information
vyasr committed Feb 15, 2022
1 parent 57608eb commit 05dc395
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/cudf/cudf/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ def pytest_sessionfinish(session, exitstatus):
Called after whole test run finished, right before
returning the exit status to the system.
"""
del os.environ["NO_EXTERNAL_ONLY_APIS"]
del os.environ["_CUDF_TEST_ROOT"]
try:
del os.environ["NO_EXTERNAL_ONLY_APIS"]
del os.environ["_CUDF_TEST_ROOT"]
except KeyError:
pass

0 comments on commit 05dc395

Please sign in to comment.