summaryrefslogtreecommitdiff
path: root/numpy/f2py/tests/test_size.py
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/f2py/tests/test_size.py
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/f2py/tests/test_size.py')
-rw-r--r--numpy/f2py/tests/test_size.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/numpy/f2py/tests/test_size.py b/numpy/f2py/tests/test_size.py
index 6cc508a19..e4f21b519 100644
--- a/numpy/f2py/tests/test_size.py
+++ b/numpy/f2py/tests/test_size.py
@@ -17,30 +17,30 @@ class TestSizeSumExample(util.F2PyTest):
@dec.slow
def test_all(self):
- r = self.module.foo([[1,2]])
- assert_equal(r, [3],repr(r))
+ r = self.module.foo([[1, 2]])
+ assert_equal(r, [3], repr(r))
- r = self.module.foo([[1,2],[3,4]])
- assert_equal(r, [3,7],repr(r))
+ r = self.module.foo([[1, 2], [3, 4]])
+ assert_equal(r, [3, 7], repr(r))
- r = self.module.foo([[1,2],[3,4],[5,6]])
- assert_equal(r, [3,7,11],repr(r))
+ r = self.module.foo([[1, 2], [3, 4], [5, 6]])
+ assert_equal(r, [3, 7, 11], repr(r))
@dec.slow
def test_transpose(self):
- r = self.module.trans([[1,2]])
- assert_equal(r, [[1],[2]],repr(r))
+ r = self.module.trans([[1, 2]])
+ assert_equal(r, [[1], [2]], repr(r))
- r = self.module.trans([[1,2,3],[4,5,6]])
- assert_equal(r, [[1,4],[2,5],[3,6]],repr(r))
+ r = self.module.trans([[1, 2, 3], [4, 5, 6]])
+ assert_equal(r, [[1, 4], [2, 5], [3, 6]], repr(r))
@dec.slow
def test_flatten(self):
- r = self.module.flatten([[1,2]])
- assert_equal(r, [1,2],repr(r))
+ r = self.module.flatten([[1, 2]])
+ assert_equal(r, [1, 2], repr(r))
- r = self.module.flatten([[1,2,3],[4,5,6]])
- assert_equal(r, [1,2,3,4,5,6],repr(r))
+ r = self.module.flatten([[1, 2, 3], [4, 5, 6]])
+ assert_equal(r, [1, 2, 3, 4, 5, 6], repr(r))
if __name__ == "__main__":
import nose