summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-04-28 16:43:57 -0700
committerAnthony Sottile <asottile@umich.edu>2020-04-28 16:43:57 -0700
commit0126ce47f640e131a28029e8d75f9768a547f2f4 (patch)
tree4ffd6d1320deaba4929c76c9624dd784ff548b9d /testsuite
parent99f354dd37c872e457c0da27924c0ec95b8adffb (diff)
downloadpep8-0126ce47f640e131a28029e8d75f9768a547f2f4.tar.gz
E306: fix detection inside `async def`E306_async_def
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/E30.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/E30.py b/testsuite/E30.py
index 8d1879b..ebe4e9d 100644
--- a/testsuite/E30.py
+++ b/testsuite/E30.py
@@ -124,6 +124,11 @@ def a():
x = 1
def b():
pass
+#: E306:3:5
+async def a():
+ x = 1
+ def b():
+ pass
#: E306:3:5 E306:5:9
def a():
x = 2