Skip to content

Commit a2dba01

Browse files
author
beyondgeeks
committed
tests: unset PYTEST_ADDOPTS with inner pytest runs (#537)
Ref: pytest-dev/pytest-django#412 (comment)
1 parent 10b91b8 commit a2dba01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ def create_app_file(code, filename):
123123
testdir.create_app_file = create_app_file
124124
testdir.project_root = project_root
125125

126+
monkeypatch.delenv('PYTEST_ADDOPTS', raising=False)
127+
126128
return testdir
127129

128130

0 commit comments

Comments
 (0)