diff options
Diffstat (limited to 'Lib/test/test_pathlib/support/lexical_path.py')
-rw-r--r-- | Lib/test/test_pathlib/support/lexical_path.py | 6 |
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 687d76f..27dec30 100644 --- a/Lib/test/test_pathlib/support/lexical_path.py +++ b/Lib/test/test_pathlib/support/lexical_path.py @@ -4,6 +4,7 @@ Simple implementation of JoinablePath, for use in pathlib tests. import os.path import pathlib.types +import posixpath class LexicalPath(pathlib.types._JoinablePath): @@ -31,3 +32,8 @@ class LexicalPath(pathlib.types._JoinablePath): def with_segments(self, *pathsegments): return type(self)(*pathsegments) + + +class LexicalPosixPath(LexicalPath): + __slots__ = () + parser = posixpath |