Skip to content

Commit b42e203

Browse files
committed
str test passes as well
1 parent 5c94bd6 commit b42e203

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/test_typing_extensions.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,11 +1707,7 @@ def func(x: annot): pass
17071707
self.assertEqual(type_hints, expected)
17081708
for k in type_hints.keys():
17091709
self.assertEqual(hash(type_hints[k]), hash(expected[k]))
1710-
with self.subTest("Test str and repr"):
1711-
if sys.version_info[:2] == (3, 8) and annot == Union[str, None, "str"]:
1712-
# This also skips Union[str, "str"] wrap_optional=True which has the same problem
1713-
self.skipTest("In 3.8 repr is Union[str, None, str]")
1714-
self.assertEqual(str(type_hints)+repr(type_hints), str(expected)+repr(type_hints))
1710+
self.assertEqual(str(type_hints)+repr(type_hints), str(expected)+repr(type_hints))
17151711

17161712

17171713
class GetUtilitiesTestCase(TestCase):

0 commit comments

Comments
 (0)