Skip to content

Commit 13d4671

Browse files
committed
Skip tests for set literals under Python 2
1 parent 30f30ee commit 13d4671

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpython/test/test_simpleeval.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ def test_matches_stdlib(self):
2020
"""Should match the stdlib literal_eval if no names or indexing"""
2121
self.assertMatchesStdlib("[1]")
2222
self.assertMatchesStdlib("{(1,): [2,3,{}]}")
23+
24+
@unittest.skipUnless(py3, "Only Python3 versions of ast.literal_eval evaluate set literals")
25+
def test_matches_stdlib_py3(self):
26+
"""Should match the stdlib literal_eval if no names or indexing"""
2327
self.assertMatchesStdlib("{1, 2}")
2428

2529
def test_indexing(self):

0 commit comments

Comments
 (0)