Skip to content

Commit 70abaef

Browse files
Fix an assertion which was always true
assertTrue() was used with the expected value as the message.
1 parent a781c54 commit 70abaef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_wsgiref.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ def test_wsgi_errors_close(self):
298298
app = errors_app("close")
299299

300300
out, err = run_amock(validator(app), b"GET / HTTP/1.0\n\n")
301-
self.assertTrue(err.splitlines()[-2], 'AssertionError: errors.close() must not be called')
301+
self.assertEqual(err.splitlines()[-2],
302+
'AssertionError: errors.close() must not be called')
302303

303304
@force_not_colorized
304305
def test_bytes_validation(self):

0 commit comments

Comments
 (0)