diff options
Diffstat (limited to 'Lib/test/test_tuple.py')
-rw-r--r-- | Lib/test/test_tuple.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_tuple.py b/Lib/test/test_tuple.py index ca46d0b5a6..d2a2ed310b 100644 --- a/Lib/test/test_tuple.py +++ b/Lib/test/test_tuple.py @@ -19,9 +19,10 @@ class TupleTest(seq_tests.CommonTest): type2test = tuple def test_getitem_error(self): + t = () msg = "tuple indices must be integers or slices" with self.assertRaisesRegex(TypeError, msg): - ()['a'] + t['a'] def test_constructors(self): super().test_constructors() |