コード例 #1
0
ファイル: __init__.py プロジェクト: gitter-badger/celery
 def test_platform_pypy(self):
     with platform_pyimp():
         with sys_platform("darwin"):
             with pypy_version((1, 4, 3)):
                 self.assertIn("PyPy", pyimplementation())
             with pypy_version((1, 4, 3, "a4")):
                 self.assertIn("PyPy", pyimplementation())
コード例 #2
0
 def test_platform_pypy(self):
     with platform_pyimp():
         with sys_platform("darwin"):
             with pypy_version((1, 4, 3)):
                 self.assertIn("PyPy", pyimplementation())
             with pypy_version((1, 4, 3, "a4")):
                 self.assertIn("PyPy", pyimplementation())
コード例 #3
0
 def test_platform_fallback(self):
     with platform_pyimp():
         with sys_platform("darwin"):
             with pypy_version():
                 self.assertEqual("CPython", pyimplementation())
コード例 #4
0
 def test_platform_jython(self):
     with platform_pyimp():
         with sys_platform("java 1.6.51"):
             self.assertIn("Jython", pyimplementation())
コード例 #5
0
 def test_platform_python_implementation(self):
     with platform_pyimp(lambda: "Xython"):
         self.assertEqual(pyimplementation(), "Xython")
コード例 #6
0
ファイル: __init__.py プロジェクト: gitter-badger/celery
 def test_platform_fallback(self):
     with platform_pyimp():
         with sys_platform("darwin"):
             with pypy_version():
                 self.assertEqual("CPython", pyimplementation())
コード例 #7
0
ファイル: __init__.py プロジェクト: gitter-badger/celery
 def test_platform_jython(self):
     with platform_pyimp():
         with sys_platform("java 1.6.51"):
             self.assertIn("Jython", pyimplementation())
コード例 #8
0
ファイル: __init__.py プロジェクト: gitter-badger/celery
 def test_platform_python_implementation(self):
     with platform_pyimp(lambda: "Xython"):
         self.assertEqual(pyimplementation(), "Xython")