Merge pull request #2254 from scop/py36-escseq

Python 3.6 invalid escape sequence deprecation fixes
This commit is contained in:
Bruno Oliveira 2017-02-15 18:41:06 -02:00 committed by GitHub
commit 27f12ed0c3
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ def testdir(request, tmpdir_factory):
return Testdir(request, tmpdir_factory)
rex_outcome = re.compile("(\d+) ([\w-]+)")
rex_outcome = re.compile(r"(\d+) ([\w-]+)")
class RunResult:
"""The result of running a command.

View File

@ -116,7 +116,7 @@ def tmpdir(request, tmpdir_factory):
path object.
"""
name = request.node.name
name = re.sub("[\W]", "_", name)
name = re.sub(r"[\W]", "_", name)
MAXVAL = 30
if len(name) > MAXVAL:
name = name[:MAXVAL]