summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2020-03-03 09:53:15 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2020-03-03 10:04:49 +0100
commit8999464dec374946a02b807e9b0e13052bc9cd1f (patch)
tree8742af6b49c8351700debebf1437d0c989c5f7da /tests
parent7b7c55c0fa8b2c51a5a514a6a3aa802e1da7a08c (diff)
downloadastroid-git-8999464dec374946a02b807e9b0e13052bc9cd1f.tar.gz
Disable test on PyPy since we cannot get 7.2 easily without manually installing it
Diffstat (limited to 'tests')
-rw-r--r--tests/unittest_nodes.py8
1 files changed, 7 insertions, 1 deletions
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'}"