mirror of https://github.com/astral-sh/ruff
[red-knot] Use Windows specific path separator in tests (#12847)
This commit is contained in:
parent
99dc208b00
commit
4b9ddc4a06
|
|
@ -411,10 +411,17 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
*messages,
|
*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![
|
vec![
|
||||||
"/src/a.py:3:4: Name 'flag' used when not defined.",
|
"/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.",
|
||||||
]
|
]
|
||||||
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue