diff --git a/test/completion/precedence.py b/test/completion/precedence.py index ed7791ec..a9a0a578 100644 --- a/test/completion/precedence.py +++ b/test/completion/precedence.py @@ -169,6 +169,8 @@ from datetime import datetime, timedelta # magic methods # ----------------- +# python >= 3.5 + class C: def __sub__(self, other) -> int: ... def __radd__(self, other) -> float: ... diff --git a/test/test_api/test_analysis.py b/test/test_api/test_analysis.py index 61685f81..9723d2eb 100644 --- a/test/test_api/test_analysis.py +++ b/test/test_api/test_analysis.py @@ -4,7 +4,7 @@ import pytest @pytest.mark.skipif(sys.version_info[0] == 2, reason="Ignore Python 2, because EOL") -def test_issue436(Script): +def test_issue436(Script, skip_python2): code = "bar = 0\nbar += 'foo' + 4" errors = set(repr(e) for e in Script(code)._analysis()) assert len(errors) == 2