aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_pathlib/support
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_pathlib/support')
-rw-r--r--Lib/test/test_pathlib/support/lexical_path.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib/support/lexical_path.py b/Lib/test/test_pathlib/support/lexical_path.py
index 27dec30d0bd..6298513de6c 100644
--- a/Lib/test/test_pathlib/support/lexical_path.py
+++ b/Lib/test/test_pathlib/support/lexical_path.py
@@ -2,6 +2,7 @@
Simple implementation of JoinablePath, for use in pathlib tests.
"""
+import ntpath
import os.path
import pathlib.types
import posixpath
@@ -37,3 +38,8 @@ class LexicalPath(pathlib.types._JoinablePath):
class LexicalPosixPath(LexicalPath):
__slots__ = ()
parser = posixpath
+
+
+class LexicalWindowsPath(LexicalPath):
+ __slots__ = ()
+ parser = ntpath