Issue assert rewrite warning if tuple >=1 as suggested in review
This commit is contained in:
parent
f1cfd10c94
commit
a054aa4797
|
@ -750,7 +750,7 @@ class AssertionRewriter(ast.NodeVisitor):
|
|||
the expression is false.
|
||||
|
||||
"""
|
||||
if isinstance(assert_.test, ast.Tuple) and len(assert_.test.elts) == 2:
|
||||
if isinstance(assert_.test, ast.Tuple) and len(assert_.test.elts) >= 1:
|
||||
from _pytest.warning_types import PytestWarning
|
||||
import warnings
|
||||
|
||||
|
|
Loading…
Reference in New Issue