diff options
author | Eric Moore <ewm@redtetrahedron.org> | 2013-03-12 19:10:46 -0400 |
---|---|---|
committer | Eric Moore <ewm@redtetrahedron.org> | 2013-03-12 19:10:46 -0400 |
commit | e58c22b79f13ddc0741228c28f22b1dc5b326bb3 (patch) | |
tree | ac5914bcb9bda67901acb82010a880387c2cf67e /numpy | |
parent | bd7104cef45be9a4250cb67af9225c9606498a51 (diff) | |
download | numpy-e58c22b79f13ddc0741228c28f22b1dc5b326bb3.tar.gz |
TST: test_umath: fix wrong indent in test_fast_power
Also, use assert_ instead of assert
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/tests/test_umath.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py index 78aa32234..244ba59a5 100644 --- a/numpy/core/tests/test_umath.py +++ b/numpy/core/tests/test_umath.py @@ -158,9 +158,9 @@ class TestPower(TestCase): assert_complex_equal(np.power(zero, -p), cnan) assert_complex_equal(np.power(zero, -1+0.2j), cnan) - def test_fast_power(self): - x=np.array([1,2,3], np.int16) - assert (x**2.00001).dtype is (x**2.0).dtype + def test_fast_power(self): + x = np.array([1,2,3], np.int16) + assert_((x**2.00001).dtype is (x**2.0).dtype) class TestLog2(TestCase): def test_log2_values(self) : |