diff options
author | Eren Sezener <erensezener@gmail.com> | 2016-03-12 23:10:17 +0200 |
---|---|---|
committer | Eren Sezener <erensezener@gmail.com> | 2016-03-20 14:41:40 +0100 |
commit | 1dd7108aeecfdde9d849ecc7adf11957ff749c54 (patch) | |
tree | 0965616c89d009962b4a54596951897c4fb0a187 /numpy/lib/tests/test_function_base.py | |
parent | 7c76ef7ea3adbd9c70a08ee39fdf1b56fb940b3b (diff) | |
download | numpy-1dd7108aeecfdde9d849ecc7adf11957ff749c54.tar.gz |
MAINT: fix indentation and whitespaces of the flip function
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index a26979f87..708367090 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -98,6 +98,7 @@ class TestRot90(TestCase): class TestFlip(TestCase): + def test_axes(self): self.assertRaises(ValueError, np.flip, np.ones(4), axis=1) self.assertRaises(ValueError, np.flip, np.ones((4, 4)), axis=2) @@ -126,13 +127,11 @@ class TestFlip(TestCase): def test_3d_swap_axis0(self): a = np.array([[[0, 1], [2, 3]], - [[4, 5], [6, 7]]]) b = np.array([[[4, 5], [6, 7]], - [[0, 1], [2, 3]]]) @@ -141,13 +140,11 @@ class TestFlip(TestCase): def test_3d_swap_axis1(self): a = np.array([[[0, 1], [2, 3]], - [[4, 5], [6, 7]]]) b = np.array([[[2, 3], [0, 1]], - [[6, 7], [4, 5]]]) @@ -155,16 +152,14 @@ class TestFlip(TestCase): def test_3d_swap_axis2(self): a = np.array([[[0, 1], - [2, 3]], - - [[4, 5], - [6, 7]]]) + [2, 3]], + [[4, 5], + [6, 7]]]) b = np.array([[[1, 0], - [3, 2]], - - [[5, 4], - [7, 6]]]) + [3, 2]], + [[5, 4], + [7, 6]]]) assert_equal(np.flip(a, 2), b) |