summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bindings/python/llvm/tests/test_core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bindings/python/llvm/tests/test_core.py b/bindings/python/llvm/tests/test_core.py
index 8123e15bad..545abc826e 100644
--- a/bindings/python/llvm/tests/test_core.py
+++ b/bindings/python/llvm/tests/test_core.py
@@ -16,3 +16,8 @@ class TestCore(TestBase):
source = self.get_test_binary()
MemoryBuffer(filename=source)
+
+ def test_memory_buffer_failing(self):
+ with self.assertRaises(Exception):
+ MemoryBuffer(filename="/hopefully/this/path/doesnt/exist")
+