Skip to content

Commit 44c330f

Browse files
committed
Fixed test error
1 parent 3a0e87b commit 44c330f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

py/tests/set.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@
5757
assert 1 in c
5858

5959
doc="__repr__"
60-
assert repr({1,2,3}) == "{1, 2, 3}"
60+
a = {1, 2, 3}
61+
b = a.__repr__()
62+
assert "{" in b
63+
assert "1" in b
64+
assert "2" in b
65+
assert "3" in b
66+
assert "}" in b
6167

6268
doc="set"
6369
a = set([1,2,3])

0 commit comments

Comments
 (0)