summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_grammar.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-09-15 16:50:23 (GMT)
committerYury Selivanov <yury@magic.io>2016-09-15 16:50:23 (GMT)
commit8987c9d219f0efb438f5d707a63d0a0a0f72b3ef (patch)
tree409543083b30dda1c786a619ab9012b0c9e0483f /Lib/test/test_grammar.py
parent67752315979e1501b7088273b5a1aecc90b6fe67 (diff)
downloadcpython-8987c9d219f0efb438f5d707a63d0a0a0f72b3ef.zip
cpython-8987c9d219f0efb438f5d707a63d0a0a0f72b3ef.tar.gz
cpython-8987c9d219f0efb438f5d707a63d0a0a0f72b3ef.tar.bz2
Issue #26182: Raise DeprecationWarning for improper use of async/await keywords
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r--Lib/test/test_grammar.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py
index 67a61d4..03f2c84 100644
--- a/Lib/test/test_grammar.py
+++ b/Lib/test/test_grammar.py
@@ -1345,18 +1345,6 @@ class GrammarTests(unittest.TestCase):
self.assertEqual(m.other, 42)
def test_async_await(self):
- async = 1
- await = 2
- self.assertEqual(async, 1)
-
- def async():
- nonlocal await
- await = 10
- async()
- self.assertEqual(await, 10)
-
- self.assertFalse(bool(async.__code__.co_flags & inspect.CO_COROUTINE))
-
async def test():
def sum():
pass