◐ Shell
clean mode source ↗

bpo-45292: Use raw strings for regex in tests by iritkatriel · Pull Request #29545 · python/cpython

This removes these warnings:

0:00:00 load avg: 0.39 [1/1] test_exception_group
/home/karthikeyan/stuff/python/cpython/Lib/test/test_exception_group.py:41: DeprecationWarning: invalid escape sequence '('
MSG = 'second argument (exceptions) must be a sequence'
/home/karthikeyan/stuff/python/cpython/Lib/test/test_exception_group.py:47: DeprecationWarning: invalid escape sequence '('
MSG = 'second argument (exceptions) must be a non-empty sequence'
/home/karthikeyan/stuff/python/cpython/Lib/test/test_exception_group.py:52: DeprecationWarning: invalid escape sequence '('
MSG = ('Item [0-9]+ of second argument (exceptions)'

https://bugs.python.org/issue45292