Skip to content

Commit 37c94bb

Browse files
committed
Fix invalid escape sequences
1 parent a12feeb commit 37c94bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

testing/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def broken_deep_listdir(): # pragma: no cover (platform specific)
5353
except OSError:
5454
return True
5555
try:
56-
os.listdir(b'\\\\?\C:' + b'\\' * 300)
56+
os.listdir(b'\\\\?\\C:' + b'\\' * 300)
5757
except TypeError:
5858
return True
5959
except OSError:

tests/commands/try_repo_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def try_repo_opts(repo, ref=None, **kwargs):
1919

2020
def _get_out(cap_out):
2121
out = cap_out.get().replace('\r\n', '\n')
22-
out = re.sub('\[INFO\].+\n', '', out)
22+
out = re.sub(r'\[INFO\].+\n', '', out)
2323
start, using_config, config, rest = out.split('=' * 79 + '\n')
2424
assert start == ''
2525
assert using_config == 'Using config:\n'

0 commit comments

Comments
 (0)