Skip to content

Commit 0527067

Browse files
committed
Make test_bad_status_repr work for Python 3.7
Allow a different representation for the exception.
1 parent 39a066e commit 0527067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_future/test_httplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def test_bad_status_repr(self):
197197
if not utils.PY3:
198198
self.assertEqual(repr(exc), '''BadStatusLine("u\'\'",)''')
199199
else:
200-
self.assertEqual(repr(exc), '''BadStatusLine("\'\'",)''')
200+
self.assertIn(repr(exc), ('''BadStatusLine("''",)''', '''BadStatusLine("''")'''))
201201

202202
def test_partial_reads(self):
203203
# if we have a length, the system knows when to close itself

0 commit comments

Comments
 (0)