Skip to content

Commit

Permalink
Disable test on PyPy since we cannot get 7.2 easily without manually …
Browse files Browse the repository at this point in the history
…installing it
  • Loading branch information
PCManticore committed Mar 3, 2020
1 parent 7b7c55c commit 8999464
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/unittest_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import textwrap
import unittest
import copy
import platform

import pytest
import six
Expand Down Expand Up @@ -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'}"
Expand Down

0 comments on commit 8999464

Please sign in to comment.