summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_wsgiref.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_wsgiref.py')
-rw-r--r--Lib/test/test_wsgiref.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_wsgiref.py b/Lib/test/test_wsgiref.py
index b7d02e8..3977e23 100644
--- a/Lib/test/test_wsgiref.py
+++ b/Lib/test/test_wsgiref.py
@@ -161,10 +161,10 @@ class IntegrationTests(TestCase):
self.assertTrue(out.endswith(
b"A server error occurred. Please contact the administrator."
))
- self.assertEqual(
+ self.assertRegex(
err.splitlines()[-2],
- "AssertionError: Headers (('Content-Type', 'text/plain')) must"
- " be of type list: <class 'tuple'>"
+ r"AssertionError: Headers \(\('Content-Type', 'text/plain'\)\) must"
+ r" be of type list: <class 'tuple' at 0x.+>"
)
def test_status_validation_errors(self):
@@ -704,3 +704,4 @@ class HandlerTests(TestCase):
if __name__ == "__main__":
unittest.main()
+