예제 #1
0
파일: test_app.py 프로젝트: huangsam/celery
 def test_platform_pypy(self):
     with conftest.platform_pyimp():
         with conftest.sys_platform('darwin'):
             with conftest.pypy_version((1, 4, 3)):
                 assert 'PyPy' in pyimplementation()
             with conftest.pypy_version((1, 4, 3, 'a4')):
                 assert 'PyPy' in pyimplementation()
예제 #2
0
파일: test_app.py 프로젝트: huangsam/celery
 def test_platform_fallback(self):
     with conftest.platform_pyimp():
         with conftest.sys_platform('darwin'):
             with conftest.pypy_version():
                 assert 'CPython' == pyimplementation()
예제 #3
0
파일: test_app.py 프로젝트: huangsam/celery
 def test_platform_jython(self):
     with conftest.platform_pyimp():
         with conftest.sys_platform('java 1.6.51'):
             assert 'Jython' in pyimplementation()