From 25b56d6bada3a431b3169cc9a785bdf5e76fa04d Mon Sep 17 00:00:00 2001 From: Anders Waldenborg Date: Thu, 22 Mar 2012 11:23:52 +0000 Subject: [PATCH] [python] Add negative MemoryBuffer testcase llvm-svn: 153248 --- bindings/python/llvm/tests/test_core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bindings/python/llvm/tests/test_core.py b/bindings/python/llvm/tests/test_core.py index 8123e15bad7..545abc826ea 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") +