Skip to content

Commit

Permalink
[python] Add negative MemoryBuffer testcase
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153248 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
wanders committed Mar 22, 2012
1 parent 63bd926 commit e3295cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bindings/python/llvm/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.