summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-06-30 18:19:18 -0400
committerYury Selivanov <yselivanov@sprymix.com>2015-06-30 18:19:18 -0400
commit93a3252c9c656c095e6855e48c1d05eda141be09 (patch)
tree885ba2eec33a194830960ab0eff55d53dbb870b8 /Lib/test
parentb2c42c2a8f308626bba43db31a78907bf6e07dc3 (diff)
parenta74b5e59af6b4271eac7953771e7d3346e76b058 (diff)
downloadcpython-git-93a3252c9c656c095e6855e48c1d05eda141be09.tar.gz
Merge 3.5 (Issue #24400)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_inspect.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py
index 39fa484abc..ebd106c1d7 100644
--- a/Lib/test/test_inspect.py
+++ b/Lib/test/test_inspect.py
@@ -159,31 +159,6 @@ class TestPredicates(IsTestBase):
coro.close(); gen_coro.close() # silence warnings
- def test_isawaitable(self):
- def gen(): yield
- self.assertFalse(inspect.isawaitable(gen()))
-
- coro = coroutine_function_example(1)
- gen_coro = gen_coroutine_function_example(1)
-
- self.assertTrue(
- inspect.isawaitable(coro))
- self.assertTrue(
- inspect.isawaitable(gen_coro))
-
- class Future:
- def __await__():
- pass
- self.assertTrue(inspect.isawaitable(Future()))
- self.assertFalse(inspect.isawaitable(Future))
-
- class NotFuture: pass
- not_fut = NotFuture()
- not_fut.__await__ = lambda: None
- self.assertFalse(inspect.isawaitable(not_fut))
-
- coro.close(); gen_coro.close() # silence warnings
-
def test_isroutine(self):
self.assertTrue(inspect.isroutine(mod.spam))
self.assertTrue(inspect.isroutine([].count))