コード例 #1
0
ファイル: test_app.py プロジェクト: anukat2015/AIR
 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
ファイル: test_app.py プロジェクト: HideMode/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())
コード例 #3
0
ファイル: test_app.py プロジェクト: AndrewBloody/DUBALU_SMS
 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())
コード例 #4
0
ファイル: test_defaults.py プロジェクト: JohnSpeno/celery
 def test_default_pool_jython(self):
     with sys_platform('java 1.6.51'):
         self.assertEqual(self.defaults.DEFAULT_POOL, 'threads')
コード例 #5
0
ファイル: test_defaults.py プロジェクト: JohnSpeno/celery
 def test_default_pool_pypy_15(self):
     with sys_platform('darwin'):
         with pypy_version((1, 5, 0)):
             self.assertEqual(self.defaults.DEFAULT_POOL, 'prefork')
コード例 #6
0
ファイル: test_app.py プロジェクト: HideMode/celery
 def test_platform_fallback(self):
     with platform_pyimp():
         with sys_platform('darwin'):
             with pypy_version():
                 self.assertEqual('CPython', pyimplementation())
コード例 #7
0
ファイル: test_app.py プロジェクト: HideMode/celery
 def test_platform_jython(self):
     with platform_pyimp():
         with sys_platform('java 1.6.51'):
             self.assertIn('Jython', pyimplementation())
コード例 #8
0
ファイル: test_app.py プロジェクト: anukat2015/AIR
 def test_platform_fallback(self):
     with platform_pyimp():
         with sys_platform('darwin'):
             with pypy_version():
                 self.assertEqual('CPython', pyimplementation())
コード例 #9
0
ファイル: test_app.py プロジェクト: anukat2015/AIR
 def test_platform_jython(self):
     with platform_pyimp():
         with sys_platform('java 1.6.51'):
             self.assertIn('Jython', pyimplementation())
コード例 #10
0
 def test_default_pool_jython(self):
     with sys_platform('java 1.6.51'):
         self.assertEqual(self.defaults.DEFAULT_POOL, 'threads')
コード例 #11
0
 def test_default_pool_pypy_15(self):
     with sys_platform('darwin'):
         with pypy_version((1, 5, 0)):
             self.assertEqual(self.defaults.DEFAULT_POOL, 'prefork')
コード例 #12
0
ファイル: test_app.py プロジェクト: AndrewBloody/DUBALU_SMS
 def test_platform_jython(self):
     with platform_pyimp():
         with sys_platform("java 1.6.51"):
             self.assertIn("Jython", pyimplementation())