Commit 4f2eb812 authored by Giampaolo Rodola's avatar Giampaolo Rodola

#6916: attempt to fix BB failure

parent 47177861
......@@ -263,6 +263,7 @@ class TestFifo(unittest.TestCase):
def test_basic(self):
with warnings.catch_warnings(record=True) as w:
f = asynchat.fifo()
if w:
assert issubclass(w[0].category, DeprecationWarning)
f.push(7)
f.push(b'a')
......@@ -280,6 +281,7 @@ class TestFifo(unittest.TestCase):
def test_given_list(self):
with warnings.catch_warnings(record=True) as w:
f = asynchat.fifo([b'x', 17, 3])
if w:
assert issubclass(w[0].category, DeprecationWarning)
self.assertEqual(len(f), 3)
self.assertEqual(f.pop(), (1, b'x'))
......
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