Skip to content

Commit 2cd3eee

Browse files
committed
Attempt to fix the tests on Windows
1 parent d1a90ac commit 2cd3eee

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/pathseq/_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def __eq__(self, other: object) -> bool:
7272
7373
.. code-block:: pycon
7474
75-
>>> seq_a = PathSequence("/path/to/image.1-3####.exr")
76-
>>> seq_b = PathSequence("/path/to/image.1,2,3####.exr")
75+
>>> seq_a = PurePathSequence("/path/to/image.1-3####.exr")
76+
>>> seq_b = PurePathSequence("/path/to/image.1,2,3####.exr")
7777
>>> seq_a == seq_b
7878
True
7979
"""
@@ -105,7 +105,7 @@ def parts(self) -> tuple[str, ...]:
105105
106106
.. code-block:: pycon
107107
108-
>>> s = PathSequence('/path/to/image.1-3####.exr')
108+
>>> s = PurePathSequence(PurePosixPath('/path/to/image.1-3####.exr'))
109109
>>> s.parts
110110
('/', 'path', 'to', 'image.1-3####.exr')
111111
"""
@@ -318,7 +318,7 @@ def path_with_file_nums(self, *numbers: int | Decimal) -> PurePathT_co:
318318
319319
.. code-block:: pycon
320320
321-
>>> p = PurePathSequence('images.1-3#.exr')
321+
>>> p = PurePathSequence(PurePosixPath('images.1-3#.exr'))
322322
>>> p.path_with_file_nums(5)
323323
PurePosixPath('images.5.exr')
324324
"""

src/pathseq/_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class IncompleteDimensionError(Exception):
6565
>>> seq.with_existing_paths()
6666
Traceback (most recent call last):
6767
...
68-
pathseq._error.IncompleteDimensionError: Sequence '.../file.1001,1002<UDIM>_1-3#.exr' contains an inconsistent number of files across one or more dimensions.
68+
pathseq._error.IncompleteDimensionError: Sequence '...file.1001,1002<UDIM>_1-3#.exr' contains an inconsistent number of files across one or more dimensions.
6969
>>> (tmp / 'file.1001_3.exr').unlink()
7070
>>> seq.with_existing_paths()
7171
PathSequence('.../file.1001,1002<UDIM>_1,2#.exr')

0 commit comments

Comments
 (0)