summaryrefslogtreecommitdiff
path: root/bindings/python/tests/test_core.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/tests/test_core.py')
-rw-r--r--bindings/python/tests/test_core.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bindings/python/tests/test_core.py b/bindings/python/tests/test_core.py
new file mode 100644
index 0000000000..8c4e933705
--- /dev/null
+++ b/bindings/python/tests/test_core.py
@@ -0,0 +1,11 @@
+from llvm.common import find_library
+from llvm.core import MemoryBuffer
+
+import unittest
+
+class TestCore(unittest.TestCase):
+ def test_memory_buffer_create_from_file(self):
+ source = find_library()
+ self.assertIsNotNone(source)
+
+ mb = MemoryBuffer(filename=source)