mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-14 00:18:31 +00:00
Merge b8c543fd73
into bdeb3eb3f2
This commit is contained in:
commit
8a837e2db3
@ -249,11 +249,13 @@ def test_sanitize_path(self):
|
||||
self.assertEqual(sanitize_path('abc.../def...'), 'abc..#\\def..#')
|
||||
self.assertEqual(sanitize_path('C:\\abc:%(title)s.%(ext)s'), 'C:\\abc#%(title)s.%(ext)s')
|
||||
|
||||
# Check with nt._path_normpath if available
|
||||
# If nt._path_normpath is available, test with os.path.normpath
|
||||
try:
|
||||
from nt import _path_normpath as nt_path_normpath
|
||||
from nt import _path_normpath as _ # noqa: F401
|
||||
except ImportError:
|
||||
nt_path_normpath = None
|
||||
else:
|
||||
from os.path import normpath as nt_path_normpath
|
||||
|
||||
for test, expected in [
|
||||
('C:\\', 'C:\\'),
|
||||
|
Loading…
Reference in New Issue
Block a user