Skip to content

Commit 7c8bbad

Browse files
committed
Fix skips and xfails files using ~
1 parent df7ffe3 commit 7c8bbad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

conftest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from functools import lru_cache
22
from pathlib import Path
33
import warnings
4+
import os
45

56
from hypothesis import settings
67
from pytest import mark
@@ -102,7 +103,7 @@ def pytest_collection_modifyitems(config, items):
102103

103104
skip_ids = []
104105
if skips_path:
105-
with open(skips_path) as f:
106+
with open(os.path.expanduser(skips_path)) as f:
106107
for line in f:
107108
if line.startswith("array_api_tests"):
108109
id_ = line.strip("\n")
@@ -116,7 +117,7 @@ def pytest_collection_modifyitems(config, items):
116117

117118
xfail_ids = []
118119
if xfails_path:
119-
with open(xfails_path) as f:
120+
with open(os.path.expanduser(xfails_path)) as f:
120121
for line in f:
121122
if not line.strip() or line.startswith('#'):
122123
continue

0 commit comments

Comments
 (0)