Skip to content

Commit f7f3250

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ 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
58+
text = re.sub('\r', '', text) # cast win lines
5659
text = re.sub(r'(/argparse.py", line )[^\n,]+(,)', fr'\1{OFTO}argparse internals...\2', text) # argparse versions
5760
text = re.sub(r'( at 0x)\w+', fr'\1{OFTO}obj id...', text) # object ids
5861
text = re.sub(r'<ipython-input-[^>]+>', f'{OFTO}jupyter cell...', text) # jupyter cells on some versions

0 commit comments

Comments
 (0)