Skip to content

Commit e3f2585

Browse files
filter deprecation warning for collect_directory test
1 parent 933f302 commit e3f2585

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

testing/acceptance_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def foo():
221221
"E {}: No module named 'qwerty'".format(exc_name),
222222
]
223223

224+
@pytest.mark.filterwarnings("always::pytest.PytestDeprecationWarning")
224225
def test_early_skip(self, testdir):
225226
testdir.mkdir("xyz")
226227
testdir.makeconftest(

testing/test_collection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ def pytest_collect_file(self, path):
257257
assert len(wascalled) == 1
258258
assert wascalled[0].ext == ".abc"
259259

260+
@pytest.mark.filterwarnings("ignore:.*pytest_collect_directory.*")
260261
def test_pytest_collect_directory(self, testdir):
261262
wascalled = []
262263

0 commit comments

Comments
 (0)