summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-11-20 17:57:47 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2015-11-20 17:57:47 (GMT)
commit875e4fbccac563f1ac15fb353879bf57184084fe (patch)
treed81f9765381bc3bf8dde21fcfcf2c18250a4fe0f /Lib/test/test_asyncio
parente342b8e8fe6a3359094688ce63bc0131ed7d416c (diff)
parent0f3c9765d4dd5e0b4df608baf8d93cc0e5c4b227 (diff)
downloadcpython-875e4fbccac563f1ac15fb353879bf57184084fe.zip
cpython-875e4fbccac563f1ac15fb353879bf57184084fe.tar.gz
cpython-875e4fbccac563f1ac15fb353879bf57184084fe.tar.bz2
Merge 3.4
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_base_events.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_asyncio/test_base_events.py b/Lib/test/test_asyncio/test_base_events.py
index bedfe16..072fe2f 100644
--- a/Lib/test/test_asyncio/test_base_events.py
+++ b/Lib/test/test_asyncio/test_base_events.py
@@ -782,9 +782,10 @@ class BaseEventLoopTests(test_utils.TestCase):
self.loop._selector.select.return_value = (event_sentinel,)
for i in range(1, 3):
- self.loop.call_soon(self.loop.stop)
- self.loop.run_forever()
- self.assertEqual(callcount, 1)
+ with self.subTest('Loop %d/2' % i):
+ self.loop.call_soon(self.loop.stop)
+ self.loop.run_forever()
+ self.assertEqual(callcount, 1)
def test_run_once(self):
# Simple test for test_utils.run_once(). It may seem strange