]> granicus.if.org Git - python/commit
Make regular expressions in test_tasks.py raw strings. (GH-8759)
authorBenjamin Peterson <benjamin@python.org>
Tue, 14 Aug 2018 04:32:30 +0000 (21:32 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Aug 2018 04:32:30 +0000 (21:32 -0700)
commitaa4e4a40db531f7095513a4b0aa6510f18162a07
tree45cca7e78f4c65a9baf8c16c7e57326dd9c37b61
parentda12063f2f53b7d272824863ed24260cefb22e8c
Make regular expressions in test_tasks.py raw strings. (GH-8759)

Follow up to bpo-34270.

Fixes:
```
Lib/test/test_asyncio/test_tasks.py:330: DeprecationWarning: invalid escape sequence \d
  match1 = re.match("^<Task pending name='Task-(\d+)'", repr(t1))
Lib/test/test_asyncio/test_tasks.py:332: DeprecationWarning: invalid escape sequence \d
  match2 = re.match("^<Task pending name='Task-(\d+)'", repr(t2))
```
Lib/test/test_asyncio/test_tasks.py