diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-01-03 19:45:08 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-01-03 19:45:08 +0100 |
commit | fc26978d18ac74dae0140346625c2df636a92033 (patch) | |
tree | d24b5f8c0cbcbd7dbc1ea7c42c93a684fbd98a50 | |
parent | 3fe2e03734caa0bfcc522c4659b526522004067e (diff) | |
download | trollius-fc26978d18ac74dae0140346625c2df636a92033.tar.gz |
Remove test_futures.test_constructor_positional()
Python 2 does not support keyword-only parameters.
-rw-r--r-- | tests/test_futures.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_futures.py b/tests/test_futures.py index 5349814..ac8c9a5 100644 --- a/tests/test_futures.py +++ b/tests/test_futures.py @@ -8,6 +8,7 @@ import mock from asyncio import events from asyncio import futures +from asyncio import tasks from asyncio import test_utils @@ -39,10 +40,6 @@ class FutureTests(unittest.TestCase): finally: events.set_event_loop(None) - def test_constructor_positional(self): - # Make sure Future does't accept a positional argument - self.assertRaises(TypeError, futures.Future, 42) - def test_cancel(self): f = futures.Future(loop=self.loop) self.assertTrue(f.cancel()) @@ -162,6 +159,7 @@ class FutureTests(unittest.TestCase): def test_iter(self): fut = futures.Future(loop=self.loop) + @tasks.coroutine def coro(): yield fut |