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())
Beispiel #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())
Beispiel #3
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())
Beispiel #4
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())
Beispiel #5
0
 def test_platform_fallback(self):
     with platform_pyimp():
         with sys_platform("darwin"):
             with pypy_version():
                 self.assertEqual("CPython", pyimplementation())
Beispiel #6
0
 def test_platform_jython(self):
     with platform_pyimp():
         with sys_platform("java 1.6.51"):
             self.assertIn("Jython", pyimplementation())
Beispiel #7
0
 def test_default_pool_jython(self):
     with sys_platform('java 1.6.51'):
         self.assertEqual(self.defaults.DEFAULT_POOL, 'threads')
Beispiel #8
0
 def test_default_pool_pypy_15(self):
     with sys_platform('darwin'):
         with pypy_version((1, 5, 0)):
             self.assertEqual(self.defaults.DEFAULT_POOL, 'processes')
Beispiel #9
0
 def test_default_pool_pypy_14(self):
     with sys_platform('darwin'):
         with pypy_version((1, 4, 0)):
             self.assertEqual(self.defaults.DEFAULT_POOL, 'solo')
 def test_platform_jython(self):
     with platform_pyimp():
         with sys_platform('java 1.6.51'):
             self.assertIn('Jython', pyimplementation())
Beispiel #11
0
 def test_platform_fallback(self):
     with platform_pyimp():
         with sys_platform('darwin'):
             with pypy_version():
                 self.assertEqual('CPython', pyimplementation())
Beispiel #12
0
 def test_platform_jython(self):
     with platform_pyimp():
         with sys_platform('java 1.6.51'):
             self.assertIn('Jython', pyimplementation())
Beispiel #13
0
 def test_platform_jython(self):
     with platform_pyimp():
         with sys_platform("java 1.6.51"):
             self.assertIn("Jython", pyimplementation())
 def test_default_pool_jython(self):
     with sys_platform('java 1.6.51'):
         self.assertEqual(self.defaults.DEFAULT_POOL, 'threads')
 def test_default_pool_pypy_15(self):
     with sys_platform('darwin'):
         with pypy_version((1, 5, 0)):
             self.assertEqual(self.defaults.DEFAULT_POOL, 'processes')
 def test_default_pool_pypy_14(self):
     with sys_platform('darwin'):
         with pypy_version((1, 4, 0)):
             self.assertEqual(self.defaults.DEFAULT_POOL, 'solo')