diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-12-17 18:50:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-17 18:50:15 -0500 |
commit | eb8d76e0832369d7195f949fa34e6c064a9f57ae (patch) | |
tree | d7acc80cfdbf8280bd602585ad111c02c3b145b8 /numpy/testing/utils.py | |
parent | 2e0970374590ef847538482baf2e9d5f43f46f8c (diff) | |
parent | ec0e04694278ef9ea83537d308b07fc27c1b5f85 (diff) | |
download | numpy-eb8d76e0832369d7195f949fa34e6c064a9f57ae.tar.gz |
Merge pull request #8382 from charris/fix-python-3.6-compat
DEP: Fix escaped string characters deprecated in Python 3.6.
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r-- | numpy/testing/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 0986686c0..859a0705b 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -2048,7 +2048,7 @@ class suppress_warnings(object): warnings.filterwarnings( "always", category=category, message=message) else: - module_regex = module.__name__.replace('.', '\.') + '$' + module_regex = module.__name__.replace('.', r'\.') + '$' warnings.filterwarnings( "always", category=category, message=message, module=module_regex) @@ -2138,7 +2138,7 @@ class suppress_warnings(object): warnings.filterwarnings( "always", category=cat, message=mess) else: - module_regex = mod.__name__.replace('.', '\.') + '$' + module_regex = mod.__name__.replace('.', r'\.') + '$' warnings.filterwarnings( "always", category=cat, message=mess, module=module_regex) |