summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLembrun <amadeusk7@free.fr>2021-03-19 14:06:43 +0100
committerLembrun <amadeusk7@free.fr>2021-03-19 14:06:43 +0100
commit169062f646a33947ea245c1fbfa540306ea4842c (patch)
tree486731a30521061f18f9ce8f53993af4d072e40d
parent6d3edf743e99d3daf5ea9e2280c680053f7af94d (diff)
downloadqutebrowser-169062f646a33947ea245c1fbfa540306ea4842c.tar.gz
qutebrowser-169062f646a33947ea245c1fbfa540306ea4842c.zip
relative_to instead of is_relative
-rw-r--r--tests/conftest.py2
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