[red-knot] Use Windows specific path separator in tests (#12847)

This commit is contained in:
Dhruv Manilawala 2024-08-12 22:26:59 +05:30 committed by GitHub
parent 99dc208b00
commit 4b9ddc4a06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 4 deletions

View File

@ -411,10 +411,17 @@ mod tests {
assert_eq!(
*messages,
if cfg!(windows) {
vec![
"\\src\\a.py:3:4: Name 'flag' used when not defined.",
"\\src\\a.py:5:1: Name 'y' used when possibly not defined.",
]
} else {
vec![
"/src/a.py:3:4: Name 'flag' used when not defined.",
"/src/a.py:5:1: Name 'y' used when possibly not defined."
"/src/a.py:5:1: Name 'y' used when possibly not defined.",
]
}
);
}
}