summaryrefslogtreecommitdiff
path: root/numpy/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-08-18 11:51:25 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-08-18 11:51:25 -0600
commitfbd6510d58a47ea0d166c48a82793f05425406e4 (patch)
tree330ce703eb02d20f96099c3fe0fc36ae33d4905b /numpy/tests
parent8ddb0ce0acafe75d78df528b4d2540dfbf4b364d (diff)
downloadnumpy-fbd6510d58a47ea0d166c48a82793f05425406e4.tar.gz
STY: Giant comma spacing fixup.
Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long and will need to be broken at some point. OTOH, some lines were already too long and need to be broken at some point. Now seems as good a time as any to do this with open PRs at a minimum.
Diffstat (limited to 'numpy/tests')
-rw-r--r--numpy/tests/test_ctypeslib.py10
-rw-r--r--numpy/tests/test_matlib.py2
2 files changed, 6 insertions, 6 deletions
diff --git a/numpy/tests/test_ctypeslib.py b/numpy/tests/test_ctypeslib.py
index ee36e0a9b..8e9c6c0bd 100644
--- a/numpy/tests/test_ctypeslib.py
+++ b/numpy/tests/test_ctypeslib.py
@@ -81,21 +81,21 @@ class TestNdpointer(TestCase):
self.assertTrue(p.from_param(np.array([[1]])))
def test_shape(self):
- p = ndpointer(shape=(1,2))
- self.assertTrue(p.from_param(np.array([[1,2]])))
- self.assertRaises(TypeError, p.from_param, np.array([[1],[2]]))
+ p = ndpointer(shape=(1, 2))
+ self.assertTrue(p.from_param(np.array([[1, 2]])))
+ self.assertRaises(TypeError, p.from_param, np.array([[1], [2]]))
p = ndpointer(shape=())
self.assertTrue(p.from_param(np.array(1)))
def test_flags(self):
- x = np.array([[1,2],[3,4]], order='F')
+ x = np.array([[1, 2], [3, 4]], order='F')
p = ndpointer(flags='FORTRAN')
self.assertTrue(p.from_param(x))
p = ndpointer(flags='CONTIGUOUS')
self.assertRaises(TypeError, p.from_param, x)
p = ndpointer(flags=x.flags.num)
self.assertTrue(p.from_param(x))
- self.assertRaises(TypeError, p.from_param, np.array([[1,2],[3,4]]))
+ self.assertRaises(TypeError, p.from_param, np.array([[1, 2], [3, 4]]))
if __name__ == "__main__":
diff --git a/numpy/tests/test_matlib.py b/numpy/tests/test_matlib.py
index 814c24b0c..0bc8548ba 100644
--- a/numpy/tests/test_matlib.py
+++ b/numpy/tests/test_matlib.py
@@ -7,7 +7,7 @@ from numpy.testing import assert_array_equal, assert_, run_module_suite
def test_empty():
x = np.matlib.empty((2,))
assert_(isinstance(x, np.matrix))
- assert_(x.shape, (1,2))
+ assert_(x.shape, (1, 2))
def test_ones():
assert_array_equal(np.matlib.ones((2, 3)),