bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442)

This commit is contained in:
sblondon 2018-04-29 19:48:33 +02:00 committed by Serhiy Storchaka
parent 70af06cdc4
commit 7d68bfa826
4 changed files with 5 additions and 2 deletions

View file

@ -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)