Skip to content

Commit cd5cd00

Browse files
Take Unpack error messages out of scope
1 parent b15af16 commit cd5cd00

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test_typing_extensions.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6809,12 +6809,11 @@ class E(type(Unpack)): pass
68096809
class F(type(*Ts)): pass
68106810
with self.assertRaisesRegex(TypeError, CANNOT_SUBCLASS_TYPE):
68116811
class G(type(Unpack[Ts])): pass
6812-
with self.assertRaisesRegex(TypeError,
6813-
r'Cannot subclass (typing|typing_extensions)\.Unpack'):
6812+
with self.assertRaises(TypeError):
68146813
class H(Unpack): pass
6815-
with self.assertRaisesRegex(TypeError, r'Cannot subclass (typing|typing_extensions)\.Unpack\[Ts\]'):
6814+
with self.assertRaises(TypeError):
68166815
class I(*Ts): pass # noqa: E742
6817-
with self.assertRaisesRegex(TypeError, r'Cannot subclass (typing|typing_extensions)\.Unpack\[Ts\]'):
6816+
with self.assertRaises(TypeError):
68186817
class J(Unpack[Ts]): pass
68196818

68206819

0 commit comments

Comments
 (0)