summaryrefslogtreecommitdiff
path: root/numpy/testing/tests/test_utils.py
diff options
context:
space:
mode:
authorxoviat <xoviat@users.noreply.github.com>2017-09-04 23:32:26 -0500
committerxoviat <xoviat@users.noreply.github.com>2017-09-04 23:33:25 -0500
commit917652ab0ebc7dfcba5b87902829658fff754730 (patch)
tree36b1d15d6b2ce8d1f79c06eea003a7b2b52275c8 /numpy/testing/tests/test_utils.py
parent37878bfb4aa9db5860887ad994c4014611812cb3 (diff)
downloadnumpy-917652ab0ebc7dfcba5b87902829658fff754730.tar.gz
TST: fix failures:
1. fail tests related to DLL load failure as they were previously untested. 2. fix have_compiler to return false on old compilers 3. xfail some tests that were not working on old Python versions.
Diffstat (limited to 'numpy/testing/tests/test_utils.py')
-rw-r--r--numpy/testing/tests/test_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
index 493c538af..c32afbf3a 100644
--- a/numpy/testing/tests/test_utils.py
+++ b/numpy/testing/tests/test_utils.py
@@ -13,7 +13,7 @@ from numpy.testing import (
assert_allclose, assert_approx_equal,
assert_array_almost_equal_nulp, assert_array_max_ulp,
clear_and_catch_warnings, suppress_warnings, run_module_suite,
- assert_string_equal, assert_, tempdir, temppath,
+ assert_string_equal, assert_, tempdir, temppath, dec
)
import unittest
@@ -263,6 +263,8 @@ class TestEqual(TestArrayEqual):
self._assert_func(x, x)
self._test_not_equal(x, y)
+ @dec.knownfailureif(sys.version_info < (3, 0),
+ msg="Error message different on Python 2")
def test_error_message(self):
try:
self._assert_func(np.array([1, 2]), np.matrix([1, 2]))