summaryrefslogtreecommitdiff
path: root/Lib/test/test_cgitb.py
diff options
context:
space:
mode:
authorsblondon <sblondon@users.noreply.github.com>2018-04-29 19:48:33 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2018-04-29 20:48:33 +0300
commit7d68bfa82654ba01d860b8a772ff63bf0bd183ee (patch)
treee4a03a4c0cfc7be75b1cdea0aba531b930a18461 /Lib/test/test_cgitb.py
parent70af06cdc4e8fbee0b9d7d46bdc193097d4bc71f (diff)
downloadcpython-git-7d68bfa82654ba01d860b8a772ff63bf0bd183ee.tar.gz
bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)
Diffstat (limited to 'Lib/test/test_cgitb.py')
-rw-r--r--Lib/test/test_cgitb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_cgitb.py b/Lib/test/test_cgitb.py
index a87a4224f9..e299ec3ec6 100644
--- a/Lib/test/test_cgitb.py
+++ b/Lib/test/test_cgitb.py
@@ -45,6 +45,7 @@ class TestCgitb(unittest.TestCase):
out = out.decode(sys.getfilesystemencoding())
self.assertIn("ValueError", out)
self.assertIn("Hello World", out)
+ self.assertIn("<strong>&lt;module&gt;</strong>", out)
# By default we emit HTML markup.
self.assertIn('<p>', out)
self.assertIn('</p>', out)