Parcourir la source

Tests pasing on PyPy 2.1

Ask Solem il y a 11 ans
Parent
commit
262d9fce16
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      celery/tests/backends/test_base.py

+ 1 - 1
celery/tests/backends/test_base.py

@@ -29,7 +29,7 @@ class wrapobject(object):
     def __init__(self, *args, **kwargs):
         self.args = args
 
-if sys.version_info >= (3, 0):
+if sys.version_info[0] == 3 or getattr(sys, 'pypy_version_info'):
     Oldstyle = None
 else:
     Oldstyle = types.ClassType('Oldstyle', (), {})