From 5fb837bf372c0b474910aa3a8b5b95e8fe8f7849 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Mon, 8 Jul 2013 17:30:48 -0400 Subject: [PATCH] MAINT: Use numpy testing method instead of assertTrue. So that when the test fails, the comparison is in a more readable format. --- tests/test_transforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_transforms.py b/tests/test_transforms.py index d61a9cf2..b1a029ba 100644 --- a/tests/test_transforms.py +++ b/tests/test_transforms.py @@ -371,4 +371,4 @@ class TestTALIB(TestCase): talib_data[key] = data[key][0].values talib_data['close'] = data['price'][0].values expected_result = talib_fn(talib_data, **t.call_kwargs)[-1] - self.assertTrue(np.allclose(talib_result, expected_result)) + np.testing.assert_allclose(talib_result, expected_result)