Skip to content
Snippets Groups Projects
Commit 4155ad6a authored by Ian Cordasco's avatar Ian Cordasco
Browse files

Simplify async keywords test

parent ae23e020
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -97,10 +97,6 @@ async def foobar(a, b, c):
 
async for x in a:
pass
def foo():
yield from [1, 2, 3]
"""
 
 
Loading
Loading
@@ -187,7 +183,8 @@ class McCabeTestCase(unittest.TestCase):
reason="Async keywords are only valid on Python 3.5+")
def test_async_keywords(self):
"""Validate that we properly process async keyword usage."""
self.assert_complexity(async_keywords, 5)
complexity = get_complexity_number(async_keywords, self.strio)
self.assertEqual(complexity, 3)
 
 
class RegressionTests(unittest.TestCase):
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment