def test_multiple_calls_to_initialize(): """Test that multiple initialize calls are harmless.""" try: PythonEngine.Initialize() PythonEngine.Initialize() PythonEngine.Initialize() except BaseException: self.fail("Initialize() raise an exception.")
def test_multiple_calls_to_initialize(): """Test that multiple initialize calls are harmless.""" try: PythonEngine.Initialize() PythonEngine.Initialize() PythonEngine.Initialize() except Exception: assert False # Initialize() raise an exception.
def testMultipleCallsToInitialize(self): """Test that multiple initialize calls are harmless.""" PythonEngine.Initialize(); PythonEngine.Initialize(); PythonEngine.Initialize();