Skip to content

Commit c14814b

Browse files
committed
Normalize paths before assert
1 parent 208436c commit c14814b

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

news/headerfile.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* <news item>
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* Normalize paths before assert in `test_serialization/test_load_multiple` to prevent possible Windows short/long name mismatch.
20+
21+
**Security:**
22+
23+
* <news item>

tests/test_serialization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def test_load_multiple(tmp_path, datafile):
3333
dt_colnames=["r", "gr"],
3434
show_path=True,
3535
)
36-
assert headerfile == Path(generated_data[headerfile.name].pop("path"))
36+
assert Path(headerfile).resolve() == Path(
37+
generated_data[headerfile.name].pop("path")
38+
)
3739

3840
# rerun without path information and save to file
3941
generated_data = serialize_data(

0 commit comments

Comments
 (0)