Remove end-of-line whitespace in snapshots (#9127)

I've configured my IDE to remove trailing end-of-line whitespace, and
these snapshots were causing trouble.
This commit is contained in:
konsti
2024-11-14 19:16:20 +01:00
committed by GitHub
parent c2ccc2c5dc
commit 9a20f8c7b7
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -67,6 +67,8 @@ pub const INSTA_FILTERS: &[(&str, &str)] = &[
r"Caused by: .* \(os error 2\)",
"Caused by: No such file or directory (os error 2)",
),
// Trim end-of-line whitespaces, to allow removing them on save.
(r"([^\s])[ \t]+(\r?\n)", "$1$2"),
];
/// Create a context for tests which simplifies shared behavior across tests.
+1 -1
View File
@@ -80,7 +80,7 @@ fn freeze_duplicate() -> Result<()> {
pip==22.1.1
----- stderr -----
warning: The package `pip` has multiple installed distributions:
warning: The package `pip` has multiple installed distributions:
- [SITE_PACKAGES]/pip-21.3.1.dist-info
- [SITE_PACKAGES]/pip-22.1.1.dist-info
"###
+1 -1
View File
@@ -7300,7 +7300,7 @@ fn sklearn() {
[stderr]
The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
rather than 'sklearn' for pip commands.
rather than 'sklearn' for pip commands.
Here is how to fix this error in the main use cases:
- use 'pip install scikit-learn' rather than 'pip install sklearn'