This will now issue a RemovedInPytest4Warning when the user calls a fixture function directly, instead of requesting it from test functions as is expected Fix #3661
8 lines
148 B
Python
8 lines
148 B
Python
import pytest
|
|
|
|
|
|
@pytest.mark.parametrize("a", [r"qwe/\abc"])
|
|
def test_fixture(tmpdir, a):
|
|
tmpdir.check(dir=1)
|
|
assert tmpdir.listdir() == []
|