summaryrefslogtreecommitdiff
path: root/bindings/python/llvm/tests/test_core.py
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-09-11 00:41:02 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-09-11 00:41:02 +0000
commit7400a858be88ed6fbffb46dcd48b6c9ad6c85a2b (patch)
tree34ff66e151e9d23e5599484f9f55c363143fcacc /bindings/python/llvm/tests/test_core.py
parent22647a078301cd4e9533d6d12431c9a4ae7c29ac (diff)
downloadllvm-7400a858be88ed6fbffb46dcd48b6c9ad6c85a2b.tar.gz
llvm-7400a858be88ed6fbffb46dcd48b6c9ad6c85a2b.tar.bz2
llvm-7400a858be88ed6fbffb46dcd48b6c9ad6c85a2b.tar.xz
[python-bindings] Fixed 3 test failures caused by typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/llvm/tests/test_core.py')
-rw-r--r--bindings/python/llvm/tests/test_core.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bindings/python/llvm/tests/test_core.py b/bindings/python/llvm/tests/test_core.py
index e5fffbae59..07a574e585 100644
--- a/bindings/python/llvm/tests/test_core.py
+++ b/bindings/python/llvm/tests/test_core.py
@@ -37,7 +37,7 @@ class TestCore(TestBase):
def test_create_module_with_name(self):
# Make sure we can not create a module without a LLVMModuleRef.
- with self.assertRaises(RuntimeError):
+ with self.assertRaises(TypeError):
m = Module()
m = Module.CreateWithName("test-module")
@@ -49,7 +49,8 @@ class TestCore(TestBase):
def test_module_getset_target(self):
m = Module.CreateWithName("test-module")
- m.target = "thumbv7-apple-ios5.0.0"
+ target = "thumbv7-apple-ios5.0.0"
+ m.target = target
self.assertEqual(m.target, target)
def test_module_print_module_to_file(self):