We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbded1 commit 3f1ff7eCopy full SHA for 3f1ff7e
tests/test_past/test_misc.py
@@ -11,7 +11,7 @@
11
from contextlib import contextmanager
12
13
from future.tests.base import unittest
14
-from future.utils import PY3
+from future.utils import PY3, PY26
15
16
if PY3:
17
from past.builtins import cmp
@@ -29,6 +29,10 @@ def empty_context_manager(*args, **kwargs):
29
class TestCmp(unittest.TestCase):
30
def test_cmp(self):
31
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
36
# to get this to run on python <3.4 which lacks subTest
37
with getattr(self, 'subTest', empty_context_manager)(x=x, y=y):
38
try:
0 commit comments