Skip to content

Commit

Permalink
Python 3.6 invalid escape sequence deprecation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Feb 15, 2017
1 parent 231e2f9 commit eeb6603
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _pytest/pytester.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion _pytest/tmpdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit eeb6603

Please sign in to comment.