Skip to content

Commit edd79cf

Browse files
committed
Skip test on non-Python 3.8
1 parent 0441055 commit edd79cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

astroid/tests/unittest_protocols.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
import contextlib
1313
import unittest
1414

15+
import pytest
16+
import sys
17+
1518
import astroid
1619
from astroid import extract_node
1720
from astroid.test_utils import require_version
@@ -213,6 +216,9 @@ def visit_assignname(self, node):
213216
parsed.accept(Visitor())
214217

215218

219+
@pytest.mark.skipif(
220+
sys.version_info[:2] < (3, 8), reason="needs assignment expressions"
221+
)
216222
def test_named_expr_inference():
217223
code = """
218224
if (a := 2) == 2:

0 commit comments

Comments
 (0)