From 8e79e6e56f516385ccb761e407dfff3a39253180 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 19 Feb 2019 13:49:09 +0200 Subject: Fix syntax warnings in tests introduced in bpo-15248. (GH-11932) --- Lib/test/test_tuple.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/test/test_tuple.py') 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() -- cgit v1.2.1