summaryrefslogtreecommitdiff
path: root/numpy/testing
diff options
context:
space:
mode:
authorBrigitta Sipőcz <bsipocz@gmail.com>2022-05-20 18:32:55 -0700
committerBrigitta Sipőcz <bsipocz@gmail.com>2022-05-23 09:29:59 -0700
commit53379cd353fb7ab5840c3ee370c735fe61d6419c (patch)
treed3ef9af34179126f996ee3d66d347d0071ddbdd7 /numpy/testing
parenteece996beacc8d78bb48749fe515986ede95bf9e (diff)
downloadnumpy-53379cd353fb7ab5840c3ee370c735fe61d6419c.tar.gz
MAINT: Python <3.7 related cleanups
Diffstat (limited to 'numpy/testing')
-rw-r--r--numpy/testing/tests/test_utils.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
index 4026a7a14..2af0467f1 100644
--- a/numpy/testing/tests/test_utils.py
+++ b/numpy/testing/tests/test_utils.py
@@ -1243,13 +1243,6 @@ def assert_warn_len_equal(mod, n_in_context, py37=None):
# do not count it.
num_warns -= 1
- # Behavior of warnings is Python version dependent. Adjust the
- # expected result to compensate. In particular, Python 3.7 does
- # not make an entry for ignored warnings.
- if sys.version_info[:2] >= (3, 7):
- if py37 is not None:
- n_in_context = py37
-
assert_equal(num_warns, n_in_context)
def test_warn_len_equal_call_scenarios():