Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit e3295cc5be7f7b2e3bb27e6bf94cd5c569f54876 1 parent 63bd926
@wanders wanders authored
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")
+
Please sign in to comment.
Something went wrong with that request. Please try again.