Skip to content

Commit 4fd12d9

Browse files
committed
Skip AsyncFunctionDef test on 3.6
1 parent 1b506f7 commit 4fd12d9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/unittest_nodes_position.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import textwrap
22
from typing import List
33

4+
import pytest
5+
46
from astroid import builder, nodes
7+
from astroid.const import PY37_PLUS
58

69

710
class TestNodePosition:
@@ -104,6 +107,13 @@ def e(): #@
104107
assert e.position == (14, 0, 14, 5)
105108

106109
@staticmethod
110+
@pytest.mark.skipif(
111+
not PY37_PLUS,
112+
reason=(
113+
"Tokenize doesn't support async keyword for Python 3.6,"
114+
"only reserved keyword in 3.7"
115+
),
116+
)
107117
def test_position_async_function() -> None:
108118
"""Position should only include keyword and name.
109119

0 commit comments

Comments
 (0)