Exemple #1
0
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.
Exemple #3
0
 def testMultipleCallsToInitialize(self):
     """Test that multiple initialize calls are harmless."""
     PythonEngine.Initialize();
     PythonEngine.Initialize();
     PythonEngine.Initialize();