Commit c2464bf5 authored by Florent Xicluna's avatar Florent Xicluna

test_ftplib: silence a BytesWarning when checking TypeError

parents 361b28db 5f3fef37
...@@ -591,7 +591,8 @@ class TestFTPClass(TestCase): ...@@ -591,7 +591,8 @@ class TestFTPClass(TestCase):
f = io.StringIO(RETR_DATA.replace('\r\n', '\n')) f = io.StringIO(RETR_DATA.replace('\r\n', '\n'))
# storlines() expects a binary file, not a text file # storlines() expects a binary file, not a text file
self.assertRaises(TypeError, self.client.storlines, 'stor foo', f) with support.check_warnings(('', BytesWarning), quiet=True):
self.assertRaises(TypeError, self.client.storlines, 'stor foo', f)
def test_nlst(self): def test_nlst(self):
self.client.nlst() self.client.nlst()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment