diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-08-05 18:17:23 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-08-05 19:01:08 -0600 |
commit | 6a2bc5e3548ff8e3b1fcd1a6d7a4ee263c17aa0b (patch) | |
tree | bd669d444c6a225e00cba33d03a6626e9e28f4d1 /numpy/ma/tests/test_regression.py | |
parent | bfe43b26969231cfe8196868280c07f0c0aa8f50 (diff) | |
download | numpy-6a2bc5e3548ff8e3b1fcd1a6d7a4ee263c17aa0b.tar.gz |
MAINT: Remove `level=` keyword from test arguments.
I don't know what that argument was used for, but it showis up in old
tests and is not explicitly used within the tests. I assume it was part
of an old testing framework and is now longer needed.
Diffstat (limited to 'numpy/ma/tests/test_regression.py')
-rw-r--r-- | numpy/ma/tests/test_regression.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/numpy/ma/tests/test_regression.py b/numpy/ma/tests/test_regression.py index 34dd29d92..925b21a14 100644 --- a/numpy/ma/tests/test_regression.py +++ b/numpy/ma/tests/test_regression.py @@ -8,21 +8,19 @@ from numpy.testing import ( suppress_warnings ) -rlevel = 1 - class TestRegression(object): - def test_masked_array_create(self,level=rlevel): + def test_masked_array_create(self): # Ticket #17 x = np.ma.masked_array([0, 1, 2, 3, 0, 4, 5, 6], mask=[0, 0, 0, 1, 1, 1, 0, 0]) assert_array_equal(np.ma.nonzero(x), [[1, 2, 6, 7]]) - def test_masked_array(self,level=rlevel): + def test_masked_array(self): # Ticket #61 np.ma.array(1, mask=[1]) - def test_mem_masked_where(self,level=rlevel): + def test_mem_masked_where(self): # Ticket #62 from numpy.ma import masked_where, MaskType a = np.zeros((1, 1)) @@ -30,7 +28,7 @@ class TestRegression(object): c = masked_where(b, a) a-c - def test_masked_array_multiply(self,level=rlevel): + def test_masked_array_multiply(self): # Ticket #254 a = np.ma.zeros((4, 1)) a[2, 0] = np.ma.masked @@ -38,7 +36,7 @@ class TestRegression(object): a*b b*a - def test_masked_array_repeat(self, level=rlevel): + def test_masked_array_repeat(self): # Ticket #271 np.ma.array([1], mask=False).repeat(10) |