Esempio n. 1
0
def _checkCPythonWithEmptyPlatform(sys):
    """
    A partially applied L{_checkCPython} that uses an empty C{platform}
    module (otherwise the code this test case is supposed to test won't
    even be called).
    """
    return dist._checkCPython(platform=emptyPlatform, sys=sys)
Esempio n. 2
0
def _checkCPythonWithEmptyPlatform(sys):
    """
    A partially applied L{_checkCPython} that uses an empty C{platform}
    module (otherwise the code this test case is supposed to test won't
    even be called).
    """
    return dist._checkCPython(platform=emptyPlatform, sys=sys)
 def test_other(self):
     """
     L{_checkCPython} returns C{False} when C{platform.python_implementation}
     says we're not running on CPython.
     """
     self.assertFalse(dist._checkCPython(platform=fakeOtherPlatform))
 def test_cpython(self):
     """
     L{_checkCPython} returns C{True} when C{platform.python_implementation}
     says we're running on CPython.
     """
     self.assertTrue(dist._checkCPython(platform=fakeCPythonPlatform))