diff options
author | Lembrun <amadeusk7@free.fr> | 2021-03-19 13:53:53 +0100 |
---|---|---|
committer | Lembrun <amadeusk7@free.fr> | 2021-03-19 13:53:53 +0100 |
commit | f0c13a7abef0f712dd135c9217df39d09f2803d8 (patch) | |
tree | 54ccae0b47a10b75d297c10c0e566456a085a0bc | |
parent | 0df8dcb0dfc8490a360636f0a2553f1a6d4b1505 (diff) | |
download | qutebrowser-f0c13a7abef0f712dd135c9217df39d09f2803d8.tar.gz qutebrowser-f0c13a7abef0f712dd135c9217df39d09f2803d8.zip |
Added fspath = pathlib.Path(path)
-rw-r--r-- | tests/conftest.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 0047f7c3d..084acddc5 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -183,9 +183,10 @@ def pytest_collection_modifyitems(config, items): def pytest_ignore_collect(path): """Ignore BDD tests if we're unable to run them.""" + fspath = pathlib.Path(path) skip_bdd = hasattr(sys, 'frozen') - rel_path = path.relto(str(pathlib.Path(__file__).parent)) - return rel_path == pathlib.Path('end2end') / 'end2end' and skip_bdd + rel_path = fspath.is_relative_to(pathlib.Path(__file__).parent) + return rel_path == pathlib.Path('end2end') / 'features' and skip_bdd @pytest.fixture(scope='session') |