This commit is contained in:
Ilan Schnell 2013-01-31 17:54:20 -06:00
commit 5dd0948c65
13 changed files with 24 additions and 24 deletions

View file

@ -454,7 +454,7 @@ class TestEngineBuilder(TestCase):
with self.assertRaises(llvm.LLVMException):
# Ensure the targetmachine is owned.
llvm._util.check_is_unowned(tm)
with self.assertRaises(llvm.LLVMException):
# Ensure the module is owned.
@ -932,7 +932,7 @@ class TestCPUSupport(TestCase):
arg = le.GenericValue.real(Type.double(), 1.234)
retval = ee.run_function(func, [arg])
golden = math.sin(1.234)
answer = retval.as_real(Type.double())
self.assertTrue(abs(answer-golden)/golden < 1e-5)