mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
#N/A: Fix tests with pytest 4
This commit is contained in:
parent
1eb4ccbcc9
commit
9354a977dd
@ -42,7 +42,7 @@ def no_cache(monkeypatch):
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def functional(request):
|
||||
if request.node.get_marker('functional') \
|
||||
if request.node.get_closest_marker('functional') \
|
||||
and not request.config.getoption('enable_functional'):
|
||||
pytest.skip('functional tests are disabled')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user