From 0fa45301fa4dd544e9dea4fb6f5c3b17b79f542d Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 12 Jan 2019 11:43:52 -0500 Subject: [PATCH] Python 3.7 testing fixes --- pytest/test_fstring.py | 6 +++--- test/Makefile | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pytest/test_fstring.py b/pytest/test_fstring.py index 038d9417..93518cd7 100644 --- a/pytest/test_fstring.py +++ b/pytest/test_fstring.py @@ -115,7 +115,7 @@ if PYTHON_VERSION > 2.6: return "f{}'{}'".format('r' if is_raw else '', content) - @pytest.mark.skipif(PYTHON_VERSION < 3.6, reason='need at least python 3.6') + @pytest.mark.skipif(PYTHON_VERSION != 3.6, reason='need Python 3.6') @hypothesis.given(format_specifiers()) def test_format_specifiers(format_specifier): """Verify that format_specifiers generates valid specifiers""" @@ -137,14 +137,14 @@ if PYTHON_VERSION > 2.6: assert 'dis(' + deparsed.text.strip('\n') + ')' == 'dis(' + expr.strip('\n') + ')' - @pytest.mark.skipif(PYTHON_VERSION < 3.6, reason='need at least python 3.6') + @pytest.mark.skipif(PYTHON_VERSION != 3.6, reason='need Python 3.6') @hypothesis.given(fstrings()) def test_uncompyle_fstring(fstring): """Verify uncompyling fstring bytecode""" run_test(fstring) - @pytest.mark.skipif(PYTHON_VERSION < 3.6, reason='need at least python 3.6') + @pytest.mark.skipif(PYTHON_VERSION != 3.6, reason='need Python 3.6') @pytest.mark.parametrize('fstring', [ "f'{abc}{abc!s}'", "f'{abc}0'", diff --git a/test/Makefile b/test/Makefile index 00662c6c..95727aa6 100644 --- a/test/Makefile +++ b/test/Makefile @@ -89,8 +89,9 @@ check-bytecode-2: #: Check deparsing bytecode 3.x only check-bytecode-3: $(PYTHON) test_pythonlib.py --bytecode-3.0 \ - --bytecode-3.1 --bytecode-3.2 --bytecode-3.3 \ - --bytecode-3.4 --bytecode-3.5 --bytecode-3.6 --bytecode-pypy3.2 + --bytecode-3.1 --bytecode-3.2 --bytecode-3.3 \ + --bytecode-3.4 --bytecode-3.5 --bytecode-3.6 --bytecode-3.7 \ + --bytecode-pypy3.2 #: Check deparsing on selected bytecode 3.x check-bytecode-3-short: