summaryrefslogtreecommitdiff
path: root/numpy/testing
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing')
-rw-r--r--numpy/testing/nosetester.py2
-rw-r--r--numpy/testing/utils.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py
index 7c01c928b..3d9616ed8 100644
--- a/numpy/testing/nosetester.py
+++ b/numpy/testing/nosetester.py
@@ -432,7 +432,7 @@ class NoseTester(object):
# be implemented).
warnings.filterwarnings("ignore", message=".*getargspec.*",
category=DeprecationWarning,
- module="nose\.")
+ module=r"nose\.")
from .noseclasses import NumpyTestProgram
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)