fix usage of NamedExpr if python_version >= 3.8

This commit is contained in:
Alessio Izzo 2023-03-02 22:53:22 +01:00
parent 3a6c53b4a5
commit c8c8597633
No known key found for this signature in database
GPG Key ID: 2B5983EE2D924936
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ from _pytest.stash import StashKey
if TYPE_CHECKING:
from _pytest.assertion import AssertionState
if sys.version_info > (3, 8):
if sys.version_info >= (3, 8):
namedExpr = ast.NamedExpr
else:
namedExpr = ast.Expr