summaryrefslogtreecommitdiff
path: root/numpy/testing/tests/test_utils.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-07-14 16:05:35 -0500
committerGitHub <noreply@github.com>2018-07-14 16:05:35 -0500
commita1d03141a6acac5a6187a5c2f9d8002cb297bd93 (patch)
tree81087868d1d528268649fa36a3a803fb8c89a291 /numpy/testing/tests/test_utils.py
parent20a80e08a9031cc6c69b168a0988443d15b8101f (diff)
parent37e4d58f2ec36de226917d215f3dbe4c893da752 (diff)
downloadnumpy-a1d03141a6acac5a6187a5c2f9d8002cb297bd93.tar.gz
Merge pull request #11556 from sh0nk/fix-assert_string_equal
BUG: Make assert_string_equal check str equality simply without regex
Diffstat (limited to 'numpy/testing/tests/test_utils.py')
-rw-r--r--numpy/testing/tests/test_utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/testing/tests/test_utils.py b/numpy/testing/tests/test_utils.py
index 465c217d4..84d310992 100644
--- a/numpy/testing/tests/test_utils.py
+++ b/numpy/testing/tests/test_utils.py
@@ -1081,6 +1081,12 @@ class TestStringEqual(object):
assert_raises(AssertionError,
lambda: assert_string_equal("foo", "hello"))
+
+ def test_regex(self):
+ assert_string_equal("a+*b", "a+*b")
+
+ assert_raises(AssertionError,
+ lambda: assert_string_equal("aaa", "a+b"))
def assert_warn_len_equal(mod, n_in_context, py34=None, py37=None):