Skip to content

Commit edfb155

Browse files
committed
Fix issue where enabler was causing tests to miss expectations when ignore-flaky was enabled
1 parent 3d1dcc4 commit edfb155

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_functional.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import sys
22

3+
import pytest
4+
35

46
if sys.version_info < (3, 12):
57
from importlib_resources import files
@@ -10,6 +12,13 @@
1012
pytest_plugins = ('pytester',)
1113

1214

15+
@pytest.fixture(autouse=True)
16+
def testdir(testdir):
17+
# disable enabler so tests run without --ignore-flaky
18+
testdir.makepyprojecttoml('[tool.pytest-enabler.ignore_flaky]')
19+
return testdir
20+
21+
1322
def get_results(recorder):
1423
'''filter records to get only call results'''
1524
results = {}

0 commit comments

Comments
 (0)