Issue assert rewrite warning if tuple >=1 as suggested in review

This commit is contained in:
Bruno Oliveira 2018-09-04 14:45:48 -03:00
parent f1cfd10c94
commit a054aa4797
1 changed files with 1 additions and 1 deletions

View File

@ -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