summaryrefslogtreecommitdiff
path: root/numpy/testing/tests
diff options
context:
space:
mode:
authorSho Nakamura <sh0nk.developer@gmail.com>2018-07-14 00:06:48 +0900
committerSho Nakamura <sh0nk.developer@gmail.com>2018-07-14 02:55:35 +0900
commit37e4d58f2ec36de226917d215f3dbe4c893da752 (patch)
tree30e316dae84be6414725a21da7fb3335df6a0d23 /numpy/testing/tests
parentfcedf44c7dea061c9939709b9754106328148c54 (diff)
downloadnumpy-37e4d58f2ec36de226917d215f3dbe4c893da752.tar.gz
BUG: Make assert_string_equal check str equality simply without regex
Diffstat (limited to 'numpy/testing/tests')
-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):