diff options
| author | Sho Nakamura <sh0nk.developer@gmail.com> | 2018-07-14 00:06:48 +0900 |
|---|---|---|
| committer | Sho Nakamura <sh0nk.developer@gmail.com> | 2018-07-14 02:55:35 +0900 |
| commit | 37e4d58f2ec36de226917d215f3dbe4c893da752 (patch) | |
| tree | 30e316dae84be6414725a21da7fb3335df6a0d23 /numpy/testing/tests | |
| parent | fcedf44c7dea061c9939709b9754106328148c54 (diff) | |
| download | numpy-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.py | 6 |
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): |
