We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51248c0 commit 09b2ed9Copy full SHA for 09b2ed9
tests/conftest.py
@@ -7,4 +7,5 @@ def pytest_configure(config):
7
8
def pytest_unconfigure(config):
9
import sys
10
- del sys._called_from_pytest
+ if hasattr(sys, "_called_from_pytest"):
11
+ del sys._called_from_pytest
0 commit comments