Skip to content

Commit 6a466f4

Browse files
committed
Use a more robust way to fail the tests if an env var is set
1 parent 338ebfe commit 6a466f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_strict/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pytest
66

7-
def pytest_sessionstart(session):
7+
def pytest_configure(config):
88
for env_var in ENVIRONMENT_VARIABLES:
99
if env_var in os.environ:
1010
pytest.exit(f"ERROR: {env_var} is set. array-api-strict environment variables must not be set when the tests are run.")

0 commit comments

Comments
 (0)