Skip to content

Instantly share code, notes, and snippets.

@eltjpm
Created July 26, 2013 15:13
Show Gist options
  • Save eltjpm/6089689 to your computer and use it in GitHub Desktop.
Save eltjpm/6089689 to your computer and use it in GitHub Desktop.
--- tests\core\issues\test_issue_56.py 2013-05-03 10:59:52.000000000 -0400
+++ test_issue_56.py 2013-07-26 11:12:50.819162900 -0400
@@ -23,9 +23,8 @@
test_fn = jit('f8[:](f8[:],f8[:])')(maxstar1d)
test_a = numpy.random.random(10)
test_b = numpy.random.random(10)
- self.assertTrue((test_fn(test_a, test_b) ==
- maxstar1d(test_a, test_b)).all())
-
+ self.assertTrue(numpy.allclose(test_fn(test_a, test_b),
+ maxstar1d(test_a, test_b)))
if __name__ == "__main__":
# TestIssue56("test_maxstar1d").debug()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment