diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-16 06:10:43 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-16 06:10:43 (GMT) |
commit | 98019e1cf6dec54ca6c56ceb150869c1430bfda3 (patch) | |
tree | d0696bd6fa0e6dc59200deb840e0a163ab706555 /Lib/test/test_asynchat.py | |
parent | 31e59aa7a2968848330a995f05fc47665d1944f2 (diff) | |
download | cpython-98019e1cf6dec54ca6c56ceb150869c1430bfda3.zip cpython-98019e1cf6dec54ca6c56ceb150869c1430bfda3.tar.gz cpython-98019e1cf6dec54ca6c56ceb150869c1430bfda3.tar.bz2 |
Issue #27034: Removed deprecated class asynchat.fifo.
Diffstat (limited to 'Lib/test/test_asynchat.py')
-rw-r--r-- | Lib/test/test_asynchat.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Lib/test/test_asynchat.py b/Lib/test/test_asynchat.py index 08090b8..0eba76d 100644 --- a/Lib/test/test_asynchat.py +++ b/Lib/test/test_asynchat.py @@ -296,37 +296,6 @@ class TestHelperFunctions(unittest.TestCase): self.assertEqual(asynchat.find_prefix_at_end("qwertydkjf", "\r\n"), 0) -class TestFifo(unittest.TestCase): - def test_basic(self): - with self.assertWarns(DeprecationWarning) as cm: - f = asynchat.fifo() - self.assertEqual(str(cm.warning), - "fifo class will be removed in Python 3.6") - f.push(7) - f.push(b'a') - self.assertEqual(len(f), 2) - self.assertEqual(f.first(), 7) - self.assertEqual(f.pop(), (1, 7)) - self.assertEqual(len(f), 1) - self.assertEqual(f.first(), b'a') - self.assertEqual(f.is_empty(), False) - self.assertEqual(f.pop(), (1, b'a')) - self.assertEqual(len(f), 0) - self.assertEqual(f.is_empty(), True) - self.assertEqual(f.pop(), (0, None)) - - def test_given_list(self): - with self.assertWarns(DeprecationWarning) as cm: - f = asynchat.fifo([b'x', 17, 3]) - self.assertEqual(str(cm.warning), - "fifo class will be removed in Python 3.6") - self.assertEqual(len(f), 3) - self.assertEqual(f.pop(), (1, b'x')) - self.assertEqual(f.pop(), (1, 17)) - self.assertEqual(f.pop(), (1, 3)) - self.assertEqual(f.pop(), (0, None)) - - class TestNotConnected(unittest.TestCase): def test_disallow_negative_terminator(self): # Issue #11259 |