diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2016-12-11 23:44:13 +0100 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2016-12-12 23:19:06 +0100 |
commit | 82a1d81fc63fc74d97a5ef949790f91f39f41f04 (patch) | |
tree | f1da13f67b10506d66ddcc19325ed92aeaca31fb /numpy/testing/nosetester.py | |
parent | ff4758ff8432077c06cb580b97c6080f9b312c5a (diff) | |
download | numpy-82a1d81fc63fc74d97a5ef949790f91f39f41f04.tar.gz |
MAINT: make regex strings raw
Python 3.6 gets more strict about escape sequences, \. is invalid.
As it could get a syntax error the version check would not work.
Diffstat (limited to 'numpy/testing/nosetester.py')
-rw-r--r-- | numpy/testing/nosetester.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/testing/nosetester.py b/numpy/testing/nosetester.py index c07d65642..7c01c928b 100644 --- a/numpy/testing/nosetester.py +++ b/numpy/testing/nosetester.py @@ -420,11 +420,11 @@ class NoseTester(object): sup.filter(DeprecationWarning, r"sys\.exc_clear\(\) not supported in 3\.x", module=threading) - sup.filter(DeprecationWarning, message="in 3\.x, __setslice__") - sup.filter(DeprecationWarning, message="in 3\.x, __getslice__") - sup.filter(DeprecationWarning, message="buffer\(\) not supported in 3\.x") - sup.filter(DeprecationWarning, message="CObject type is not supported in 3\.x") - sup.filter(DeprecationWarning, message="comparing unequal types not supported in 3\.x") + sup.filter(DeprecationWarning, message=r"in 3\.x, __setslice__") + sup.filter(DeprecationWarning, message=r"in 3\.x, __getslice__") + sup.filter(DeprecationWarning, message=r"buffer\(\) not supported in 3\.x") + sup.filter(DeprecationWarning, message=r"CObject type is not supported in 3\.x") + sup.filter(DeprecationWarning, message=r"comparing unequal types not supported in 3\.x") # Filter out some deprecation warnings inside nose 1.3.7 when run # on python 3.5b2. See # https://github.com/nose-devs/nose/issues/929 |