From 8999464dec374946a02b807e9b0e13052bc9cd1f Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Tue, 3 Mar 2020 09:53:15 +0100 Subject: Disable test on PyPy since we cannot get 7.2 easily without manually installing it --- tests/unittest_nodes.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/unittest_nodes.py b/tests/unittest_nodes.py index 78c8cfb2..2a8803a5 100644 --- a/tests/unittest_nodes.py +++ b/tests/unittest_nodes.py @@ -22,6 +22,7 @@ import sys import textwrap import unittest import copy +import platform import pytest import six @@ -254,7 +255,12 @@ class D(metaclass=abc.ABCMeta): ast = abuilder.string_build(code) self.assertEqual(ast.as_string().strip(), code.strip()) - @pytest.mark.skipif(sys.version_info[:2] < (3, 6), reason="needs f-string support") + # This test is disabled on PyPy because we cannot get a proper release on TravisCI that has + # proper support for f-strings (we need 7.2 at least) + @pytest.mark.skipif( + sys.version_info[:2] < (3, 6) or platform.python_implementation() == "PyPy", + reason="Needs f-string support.", + ) def test_f_strings(self): code = r''' a = f"{'a'}" -- cgit v1.2.1