[Python-checkins] cpython: #6916: attempt to fix BB failure
giampaolo.rodola
python-checkins at python.org
Sun Jun 22 12:44:17 CEST 2014
http://hg.python.org/cpython/rev/aeeb385e61e4
changeset: 91317:aeeb385e61e4
parent: 91306:fdfa15a9243c
user: Giampaolo Rodola' <g.rodola at gmail.com>
date: Sun Jun 22 12:43:19 2014 +0200
summary:
#6916: attempt to fix BB failure
files:
Lib/test/test_asynchat.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_asynchat.py b/Lib/test/test_asynchat.py
--- a/Lib/test/test_asynchat.py
+++ b/Lib/test/test_asynchat.py
@@ -263,7 +263,8 @@
def test_basic(self):
with warnings.catch_warnings(record=True) as w:
f = asynchat.fifo()
- assert issubclass(w[0].category, DeprecationWarning)
+ if w:
+ assert issubclass(w[0].category, DeprecationWarning)
f.push(7)
f.push(b'a')
self.assertEqual(len(f), 2)
@@ -280,7 +281,8 @@
def test_given_list(self):
with warnings.catch_warnings(record=True) as w:
f = asynchat.fifo([b'x', 17, 3])
- assert issubclass(w[0].category, DeprecationWarning)
+ if w:
+ assert issubclass(w[0].category, DeprecationWarning)
self.assertEqual(len(f), 3)
self.assertEqual(f.pop(), (1, b'x'))
self.assertEqual(f.pop(), (1, 17))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list