From f4f34b80be0105eacfaf07910ef48201f9dc3ff4 Mon Sep 17 00:00:00 2001 From: Gentaro Watanabe Date: Thu, 10 Aug 2017 11:42:08 +0900 Subject: [PATCH] Fix typo --- .../manipulation_tests/test_dims.py | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/cupy_tests/manipulation_tests/test_dims.py b/tests/cupy_tests/manipulation_tests/test_dims.py index d365bb265f1..48a9c42b4a0 100644 --- a/tests/cupy_tests/manipulation_tests/test_dims.py +++ b/tests/cupy_tests/manipulation_tests/test_dims.py @@ -152,58 +152,58 @@ def test_squeeze2(self, xp): return a.squeeze() @testing.numpy_cupy_array_equal() - def test_squeze_int_axis1(self, xp): + def test_squeeze_int_axis1(self, xp): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), xp) return a.squeeze(axis=2) @testing.numpy_cupy_array_equal() - def test_squeze_int_axis2(self, xp): + def test_squeeze_int_axis2(self, xp): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), xp) return a.squeeze(axis=-3) @testing.with_requires('numpy>=1.13') @testing.numpy_cupy_raises() - def test_squeze_int_axis_failure1(self, xp): + def test_squeeze_int_axis_failure1(self, xp): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), xp) a.squeeze(axis=-9) - def test_squeze_int_axis_failure2(self): + def test_squeeze_int_axis_failure2(self): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), cupy) with self.assertRaises(cupy.core.core._AxisError): a.squeeze(axis=-9) @testing.numpy_cupy_array_equal() - def test_squeze_tuple_axis1(self, xp): + def test_squeeze_tuple_axis1(self, xp): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), xp) return a.squeeze(axis=(2, 4)) @testing.numpy_cupy_array_equal() - def test_squeze_tuple_axis2(self, xp): + def test_squeeze_tuple_axis2(self, xp): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), xp) return a.squeeze(axis=(-4, -3)) @testing.numpy_cupy_array_equal() - def test_squeze_tuple_axis3(self, xp): + def test_squeeze_tuple_axis3(self, xp): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), xp) return a.squeeze(axis=(4, 2)) @testing.numpy_cupy_array_equal() - def test_squeze_tuple_axis4(self, xp): + def test_squeeze_tuple_axis4(self, xp): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), xp) return a.squeeze(axis=()) @testing.with_requires('numpy>=1.13') @testing.numpy_cupy_raises() - def test_squeze_tuple_axis_failure1(self, xp): + def test_squeeze_tuple_axis_failure1(self, xp): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), xp) a.squeeze(axis=(-9,)) @testing.numpy_cupy_raises() - def test_squeze_tuple_axis_failure2(self, xp): + def test_squeeze_tuple_axis_failure2(self, xp): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), xp) a.squeeze(axis=(2, 2)) - def test_squeze_tuple_axis_failure3(self): + def test_squeeze_tuple_axis_failure3(self): a = testing.shaped_arange((1, 2, 1, 3, 1, 1, 4, 1), cupy) with self.assertRaises(cupy.core.core._AxisError): a.squeeze(axis=(-9,))