예제 #1
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())
예제 #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_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
 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())
예제 #5
0
 def test_platform_fallback(self):
     with platform_pyimp():
         with sys_platform("darwin"):
             with pypy_version():
                 self.assertEqual("CPython", pyimplementation())
예제 #6
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')
예제 #7
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')
예제 #8
0
 def test_platform_fallback(self):
     with platform_pyimp():
         with sys_platform('darwin'):
             with pypy_version():
                 self.assertEqual('CPython', pyimplementation())
예제 #9
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')
예제 #10
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')