diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-02-19 11:49:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 11:49:09 (GMT) |
commit | 8e79e6e56f516385ccb761e407dfff3a39253180 (patch) | |
tree | 288fe0464276f9f8efb96556c1dee35766e3a089 /Lib/test/test_tuple.py | |
parent | e7a4bb554edb72fc6619d23241d59162d06f249a (diff) | |
download | cpython-8e79e6e56f516385ccb761e407dfff3a39253180.zip cpython-8e79e6e56f516385ccb761e407dfff3a39253180.tar.gz cpython-8e79e6e56f516385ccb761e407dfff3a39253180.tar.bz2 |
Fix syntax warnings in tests introduced in bpo-15248. (GH-11932)
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 ca46d0b..d2a2ed3 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() |