diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 03:15:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-02 04:59:16 +0300 |
commit | 41d2d6da0c96d351b47acb64d3e0decdba16cb16 (patch) | |
tree | 8f955ed71d907ab9f7ee97627a9a7c91192d139a /tests/python/rna_array.py | |
parent | bab9de2a52929fe2b45ecddb1eb09da3378e303b (diff) |
Cleanup: pep8 (indentation, spacing, long lines)
Diffstat (limited to 'tests/python/rna_array.py')
-rw-r--r-- | tests/python/rna_array.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/python/rna_array.py b/tests/python/rna_array.py index e0d63cf75ea..623766aa0a1 100644 --- a/tests/python/rna_array.py +++ b/tests/python/rna_array.py @@ -164,7 +164,8 @@ class TestMArray(unittest.TestCase): def test_assign_item(self): # arr[i] = x - for arr, func in zip(("fmarr", "imarr", "bmarr", "fdmarr", "idmarr", "bdmarr"), (rand_float, rand_int, rand_bool) * 2): + for arr, func in zip(("fmarr", "imarr", "bmarr", "fdmarr", "idmarr", "bdmarr"), + (rand_float, rand_int, rand_bool) * 2): rval = make_random_2d_array((4, 5), func) for i in range(3): @@ -172,7 +173,8 @@ class TestMArray(unittest.TestCase): self.assertEqual(prop_to_list(getattr(test, arr)[i]), rval) # arr[i][j] = x - for arr, func in zip(("fmarr", "imarr", "bmarr", "fdmarr", "idmarr", "bdmarr"), (rand_float, rand_int, rand_bool) * 2): + for arr, func in zip(("fmarr", "imarr", "bmarr", "fdmarr", "idmarr", "bdmarr"), + (rand_float, rand_int, rand_bool) * 2): arr = getattr(test, arr) rval = make_random_array(5, func) @@ -283,7 +285,10 @@ def prop_to_list(prop): def suite(): - return unittest.TestSuite([unittest.TestLoader().loadTestsFromTestCase(TestArray), unittest.TestLoader().loadTestsFromTestCase(TestMArray)]) + return unittest.TestSuite([ + unittest.TestLoader().loadTestsFromTestCase(TestArray), + unittest.TestLoader().loadTestsFromTestCase(TestMArray), + ]) if __name__ == "__main__": |