diff options
| author | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-06-21 13:59:25 +0200 |
|---|---|---|
| committer | Giampaolo Rodola' <g.rodola@gmail.com> | 2014-06-21 13:59:25 +0200 |
| commit | 47177861dd7995b4cd27acb9757f0e804e3f06e4 (patch) | |
| tree | 786e2e6c3ee8790b32123b4c203ca14826036cc2 /Lib/test/test_asyncio/test_streams.py | |
| parent | bd0487694c0ce55ae9d425fe9e13e21878a7d6dc (diff) | |
| parent | ca7e5d3e1dd2ac82abfa425817180cdc7985d3de (diff) | |
| download | cpython-git-47177861dd7995b4cd27acb9757f0e804e3f06e4.tar.gz | |
merge heads
Diffstat (limited to 'Lib/test/test_asyncio/test_streams.py')
| -rw-r--r-- | Lib/test/test_asyncio/test_streams.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_asyncio/test_streams.py b/Lib/test/test_asyncio/test_streams.py index 1ecc8eb1fa..73a375aba4 100644 --- a/Lib/test/test_asyncio/test_streams.py +++ b/Lib/test/test_asyncio/test_streams.py @@ -15,13 +15,13 @@ import asyncio from asyncio import test_utils -class StreamReaderTests(unittest.TestCase): +class StreamReaderTests(test_utils.TestCase): DATA = b'line1\nline2\nline3\n' def setUp(self): self.loop = asyncio.new_event_loop() - asyncio.set_event_loop(None) + self.set_event_loop(self.loop) def tearDown(self): # just in case if we have transport close callbacks @@ -29,6 +29,7 @@ class StreamReaderTests(unittest.TestCase): self.loop.close() gc.collect() + super().tearDown() @mock.patch('asyncio.streams.events') def test_ctor_global_loop(self, m_events): |
