Skip to content

Commit f61c19a

Browse files
author
Andy Landy
committed
fix tests
1 parent f7f3250 commit f61c19a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def match_text(self, text: str, sub_label: str = '') -> None:
5353
def strip_tb_text(text: str) -> str:
5454
OFTO = '...omitted for tests only, '
5555

56-
text = re.sub('\\', '/', text) # cast win paths so the following rules could apply
57-
text = re.sub('D:/', '/d/', text) # same
56+
text = re.sub(r'\\', '/', text) # cast win paths so the following rules could apply
57+
text = re.sub('[A-Z]:/', '/d/', text) # same
5858
text = re.sub('\r', '', text) # cast win lines
5959
text = re.sub(r'(/argparse.py", line )[^\n,]+(,)', fr'\1{OFTO}argparse internals...\2', text) # argparse versions
6060
text = re.sub(r'( at 0x)\w+', fr'\1{OFTO}obj id...', text) # object ids

0 commit comments

Comments
 (0)