diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-10-18 07:58:20 -0700 |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-10-18 07:58:20 -0700 |
commit | 57497ad1810304ef74774fb1abd379dec80f458b (patch) | |
tree | 1696f5389cdad967002eff56160765936aba9010 /Lib/test/test_asyncio/test_unix_events.py | |
parent | 40b22d0661c45ac350a7252a32ef665b81b1643c (diff) | |
download | cpython-57497ad1810304ef74774fb1abd379dec80f458b.tar.gz cpython-57497ad1810304ef74774fb1abd379dec80f458b.zip |
Rename Transport.pause/resume to pause_reading/pause_writing. Also relax timeout in test_call_later().
Diffstat (limited to 'Lib/test/test_asyncio/test_unix_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_unix_events.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py index 227366d9494..ccabeea13e1 100644 --- a/Lib/test/test_asyncio/test_unix_events.py +++ b/Lib/test/test_asyncio/test_unix_events.py @@ -375,21 +375,21 @@ class UnixReadPipeTransportTests(unittest.TestCase): m_logexc.assert_called_with('Fatal error for %s', tr) @unittest.mock.patch('os.read') - def test_pause(self, m_read): + def test_pause_reading(self, m_read): tr = unix_events._UnixReadPipeTransport( self.loop, self.pipe, self.protocol) m = unittest.mock.Mock() self.loop.add_reader(5, m) - tr.pause() + tr.pause_reading() self.assertFalse(self.loop.readers) @unittest.mock.patch('os.read') - def test_resume(self, m_read): + def test_resume_reading(self, m_read): tr = unix_events._UnixReadPipeTransport( self.loop, self.pipe, self.protocol) - tr.resume() + tr.resume_reading() self.loop.assert_reader(5, tr._read_ready) @unittest.mock.patch('os.read') |