From 169062f646a33947ea245c1fbfa540306ea4842c Mon Sep 17 00:00:00 2001 From: Lembrun Date: Fri, 19 Mar 2021 14:06:43 +0100 Subject: relative_to instead of is_relative --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf