コード例 #1
0
ファイル: test_app.py プロジェクト: 277800076/celery
 def test_platform_pypy(self):
     with mock.platform_pyimp():
         with mock.sys_platform('darwin'):
             with mock.pypy_version((1, 4, 3)):
                 self.assertIn('PyPy', pyimplementation())
             with mock.pypy_version((1, 4, 3, 'a4')):
                 self.assertIn('PyPy', pyimplementation())
コード例 #2
0
 def test_platform_pypy(self):
     with mock.platform_pyimp():
         with mock.sys_platform('darwin'):
             with mock.pypy_version((1, 4, 3)):
                 self.assertIn('PyPy', pyimplementation())
             with mock.pypy_version((1, 4, 3, 'a4')):
                 self.assertIn('PyPy', pyimplementation())
コード例 #3
0
ファイル: test_app.py プロジェクト: 277800076/celery
 def test_platform_fallback(self):
     with mock.platform_pyimp():
         with mock.sys_platform('darwin'):
             with mock.pypy_version():
                 self.assertEqual('CPython', pyimplementation())
コード例 #4
0
 def test_platform_fallback(self):
     with mock.platform_pyimp():
         with mock.sys_platform('darwin'):
             with mock.pypy_version():
                 self.assertEqual('CPython', pyimplementation())