Skip to content

Commit e338326

Browse files
committed
Adjust non-raw Windows escape-sequence path test
Relates to #10
1 parent 4783444 commit e338326

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

tests/test_pathtools.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,17 @@ def test_parse_path_windows_newline():
5959
}
6060

6161

62-
6362
def test_parse_path_windows_tabs_and_lines():
64-
r"""Test non-raw string containing newline \n and tab \t sequences."""
63+
r"""Test non-raw string containing newline `\n` and tab `\t` sequences.
64+
65+
As `parse_path()` cannot work on non-raw strings containing escape
66+
sequences, the parsed result will not be the expected one.
67+
"""
6568
path = "C:\new_folder\test"
6669
parsed = parse_path(path)
6770

68-
assert parsed["full"] == r"C:\new_folder\test"
69-
assert parsed["fname"] == "test"
71+
assert parsed["full"] != r"C:\new_folder\test"
72+
assert parsed["fname"] != "test"
7073

7174

7275
def test_jython_fiji_exists(tmpdir):

0 commit comments

Comments
 (0)