diff options
author | Kushal Das <kushaldas@gmail.com> | 2016-06-04 23:21:13 (GMT) |
---|---|---|
committer | Kushal Das <kushaldas@gmail.com> | 2016-06-04 23:21:13 (GMT) |
commit | 5801ecb4408cd11f6e6ffcb1612ca68d9936a728 (patch) | |
tree | d50a9aa79b55eb92dde2c12908d6ecb14fc7f1d5 /Lib/test/test_wsgiref.py | |
parent | 409482251b06fe75c4ee56e85ffbb4b23d934159 (diff) | |
download | cpython-5801ecb4408cd11f6e6ffcb1612ca68d9936a728.zip cpython-5801ecb4408cd11f6e6ffcb1612ca68d9936a728.tar.gz cpython-5801ecb4408cd11f6e6ffcb1612ca68d9936a728.tar.bz2 |
Issue #25548: Showing memory address of class objects in repl
Diffstat (limited to 'Lib/test/test_wsgiref.py')
-rw-r--r-- | Lib/test/test_wsgiref.py | 7 |
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() + |