We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70ed32d commit 4783444Copy full SHA for 4783444
1 file changed
tests/test_pathtools.py
@@ -43,6 +43,23 @@ def test_parse_path_windows():
43
assert parsed['dname'] == 'foo'
44
45
46
+def test_parse_path_windows_newline():
47
+ path = r'C:\Temp\new\file.ext'
48
+ parsed = parse_path(path)
49
+
50
+ assert parsed == {
51
+ 'dname': 'new',
52
+ 'ext': '.ext',
53
+ 'fname': 'file.ext',
54
+ 'full': 'C:/Temp/new/file.ext',
55
+ 'basename': 'file',
56
+ 'orig': 'C:\\Temp\\new\\file.ext',
57
+ 'parent': 'C:/Temp',
58
+ 'path': 'C:/Temp/new/',
59
+ }
60
61
62
63
def test_parse_path_windows_tabs_and_lines():
64
r"""Test non-raw string containing newline \n and tab \t sequences."""
65
path = "C:\new_folder\test"
0 commit comments