[python-bindings] Added bindings for LLVMContextRef and a test for creating a new...
[oota-llvm.git] / bindings / python / llvm / tests / test_core.py
index 3fdaf455fd405a667a8390ba59ca71fdc0ec44ed..3364a66cb55759801111af0f5892f71f3d2f09d6 100644 (file)
@@ -2,6 +2,7 @@ from .base import TestBase
 from ..core import OpCode
 from ..core import MemoryBuffer
 from ..core import PassRegistry
+from ..core import Context
 
 class TestCore(TestBase):
     def test_opcode(self):
@@ -29,3 +30,6 @@ class TestCore(TestBase):
 
     def test_create_passregistry(self):
         PassRegistry()
+
+    def test_create_context(self):
+        Context.GetGlobalContext()