Disable more tests in Python2.6, because of set literals that don't exist there.

This commit is contained in:
Dave Halter
2017-09-03 02:01:43 +02:00
parent 957f2cedf4
commit ef89593896
4 changed files with 49 additions and 36 deletions

View File

@@ -91,19 +91,6 @@ d.items()[0][0]
#? int()
d.items()[0][1]
# -----------------
# set
# -----------------
set_t = {1,2}
#? ['clear', 'copy']
set_t.c
set_t2 = set()
#? ['clear', 'copy']
set_t2.c
# -----------------
# tuples
# -----------------
@@ -125,3 +112,18 @@ tup3.index
tup4 = 1,""
#? ['index']
tup4.index
# -----------------
# set
# -----------------
# Set literals are not valid in 2.6.
# python >= 2.7
set_t = {1,2}
#? ['clear', 'copy']
set_t.c
set_t2 = set()
#? ['clear', 'copy']
set_t2.c