diff options
author | Lembrun <amadeusk7@free.fr> | 2021-03-19 14:06:43 +0100 |
---|---|---|
committer | Lembrun <amadeusk7@free.fr> | 2021-03-19 14:06:43 +0100 |
commit | 169062f646a33947ea245c1fbfa540306ea4842c (patch) | |
tree | 486731a30521061f18f9ce8f53993af4d072e40d | |
parent | 6d3edf743e99d3daf5ea9e2280c680053f7af94d (diff) | |
download | qutebrowser-169062f646a33947ea245c1fbfa540306ea4842c.tar.gz qutebrowser-169062f646a33947ea245c1fbfa540306ea4842c.zip |
relative_to instead of is_relative
-rw-r--r-- | tests/conftest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 8e35e1c24..6275cdd02 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -185,7 +185,7 @@ 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 = fspath.is_relative_to(pathlib.Path(__file__).parent) + rel_path = fspath.relative_to(pathlib.Path(__file__).parent) return rel_path == pathlib.Path('end2end') / 'features' and skip_bdd |