Remove some Python 3.5/3.4 references

This commit is contained in:
Dave Halter
2020-07-25 02:04:58 +02:00
parent 86d53add2d
commit 4f9f193747
4 changed files with 2 additions and 20 deletions

View File

@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
from textwrap import dedent
import logging
import sys
import pytest
@@ -1267,7 +1266,6 @@ def test_some_weird_removals(differ):
differ.parse(code1, copies=1)
@pytest.mark.skipif(sys.version_info < (3, 5), reason="Async starts working in 3.5")
def test_async_copy(differ):
code1 = dedent('''\
async def main():

View File

@@ -123,10 +123,6 @@ def _get_actual_exception(code):
elif wanted == 'SyntaxError: assignment to keyword':
return [wanted, "SyntaxError: can't assign to keyword",
'SyntaxError: cannot assign to __debug__'], line_nr
elif wanted == 'SyntaxError: can use starred expression only as assignment target':
# Python 3.4/3.4 have a bit of a different warning than 3.5/3.6 in
# certain places. But in others this error makes sense.
return [wanted, "SyntaxError: can't use starred expression here"], line_nr
elif wanted == 'SyntaxError: f-string: unterminated string':
wanted = 'SyntaxError: EOL while scanning string literal'
elif wanted == 'SyntaxError: f-string expression part cannot include a backslash':