Skip to content

Commit 3f1ff7e

Browse files
committed
fix 2.6 test
1 parent 4dbded1 commit 3f1ff7e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_past/test_misc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from contextlib import contextmanager
1212

1313
from future.tests.base import unittest
14-
from future.utils import PY3
14+
from future.utils import PY3, PY26
1515

1616
if PY3:
1717
from past.builtins import cmp
@@ -29,6 +29,10 @@ def empty_context_manager(*args, **kwargs):
2929
class TestCmp(unittest.TestCase):
3030
def test_cmp(self):
3131
for x, y, cmp_python2_value in test_values.cmp_python2_value:
32+
if PY26:
33+
# set comparison works a bit differently in 2.6
34+
if isinstance(x, set) or isinstance(y, set):
35+
continue
3236
# to get this to run on python <3.4 which lacks subTest
3337
with getattr(self, 'subTest', empty_context_manager)(x=x, y=y):
3438
try:

0 commit comments

Comments
 (0)