Browse files

[python] Add negative MemoryBuffer testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153248 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
1 parent 63bd926 commit e3295cc5be7f7b2e3bb27e6bf94cd5c569f54876 @wanders wanders committed Mar 22, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 bindings/python/llvm/tests/test_core.py
View
5 bindings/python/llvm/tests/test_core.py
@@ -16,3 +16,8 @@ def test_memory_buffer_create_from_file(self):
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")
+

0 comments on commit e3295cc

Please sign in to comment.