diff options
author | Roman Yurchak <rth.yurchak@gmail.com> | 2020-03-24 22:22:40 +0100 |
---|---|---|
committer | Roman Yurchak <rth.yurchak@gmail.com> | 2020-03-24 22:26:50 +0100 |
commit | b6e5569ec3461b07ac5a0031b2d02af268dded8f (patch) | |
tree | 4c21e8b2cc542096a931f20f3156b44cab0358c7 /numpy/core/tests | |
parent | 77d685a29ec03184c1691cad58d8730fe530a0ae (diff) | |
download | numpy-b6e5569ec3461b07ac5a0031b2d02af268dded8f.tar.gz |
md5 module is deprecated since python 2.5
Diffstat (limited to 'numpy/core/tests')
-rw-r--r-- | numpy/core/tests/test_regression.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/core/tests/test_regression.py b/numpy/core/tests/test_regression.py index 06c7ff0b8..0cb1207d9 100644 --- a/numpy/core/tests/test_regression.py +++ b/numpy/core/tests/test_regression.py @@ -1506,10 +1506,7 @@ class TestRegression: test_type(t) def test_buffer_hashlib(self): - try: - from hashlib import md5 - except ImportError: - from md5 import new as md5 + from hashlib import md5 x = np.array([1, 2, 3], dtype=np.dtype('<i4')) assert_equal(md5(x).hexdigest(), '2a1dd1e1e59d0a384c26951e316cd7e6') |