コード例 #1
0
ファイル: test_engine.py プロジェクト: zfq308/pythonnet
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.")
コード例 #2
0
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.
コード例 #3
0
ファイル: test_engine.py プロジェクト: swfiua/pythonnet
 def testMultipleCallsToInitialize(self):
     """Test that multiple initialize calls are harmless."""
     PythonEngine.Initialize();
     PythonEngine.Initialize();
     PythonEngine.Initialize();