summaryrefslogtreecommitdiff
path: root/Lib/test/test_cgitb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_cgitb.py')
-rw-r--r--Lib/test/test_cgitb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_cgitb.py b/Lib/test/test_cgitb.py
index e299ec3ec6..8991bc1ff3 100644
--- a/Lib/test/test_cgitb.py
+++ b/Lib/test/test_cgitb.py
@@ -31,7 +31,7 @@ class TestCgitb(unittest.TestCase):
def test_text(self):
try:
raise ValueError("Hello World")
- except ValueError as err:
+ except ValueError:
text = cgitb.text(sys.exc_info())
self.assertIn("ValueError", text)
self.assertIn("Hello World", text)