Skip to content

Commit d817705

Browse files
committed
fixed up set_repr test on windows
1 parent 1b0ffcf commit d817705

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

fileformats/core/tests/test_identification.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from collections import Counter
22
import itertools
33
import typing as ty
4+
from pathlib import Path
45
import pytest
56
from fileformats.core import (
67
find_matching,
@@ -66,9 +67,12 @@ def test_repr():
6667

6768

6869
def test_set_repr_trunc():
70+
a = Path("/a/path")
71+
b = Path("/b/path")
72+
c = Path("/c/path")
73+
d = Path("/d/path")
6974
assert (
70-
repr(SetOf[File].mock("/a/path", "/b/path", "/c/path", "/d/path"))
71-
== "SetOf[File]('/a/path', '/b/path', '/c/path', ...)"
75+
repr(SetOf[File].mock(a, b, c, d)) == f"SetOf[File]('{a}', '{b}', '{c}', ...)"
7276
)
7377

7478

0 commit comments

Comments
 (0)