Skip to content

Commit d35e60b

Browse files
EliEli
authored andcommitted
Attempt github-side test failure with resolve() and moving paths into functions.
1 parent 8656bf7 commit d35e60b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/test_read_yaml_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
read_yaml_header,
1010
)
1111

12-
DATA_FILE = Path(__file__).parent / "data" / "header_data.txt"
12+
DATA_FILE = Path(__file__).parent.resolve() / "data" / "header_data.txt"
1313

1414

1515
def load_cases():

tests/test_yaml_headers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from dms_datastore.read_ts import parse_yaml_header
77
from dms_datastore.write_ts import prep_header
88

9-
DATA_FILE = Path(__file__).parent / "data" / "header_data.txt"
9+
1010

1111
def leading_commented_header(text: str, comment: str = "#") -> str:
1212
# Use the same rule as extract_commented_header, but on an in-memory string
@@ -23,7 +23,7 @@ def load_header_cases():
2323
cases = {}
2424
current_name = None
2525
current_lines = []
26-
26+
DATA_FILE = Path(__file__).parent.resolve() / "data" / "header_data.txt"
2727
for line in DATA_FILE.read_text().splitlines(keepends=True):
2828
if line.startswith("!"):
2929
if current_name is not None:

0 commit comments

Comments
 (0)