From d29402395bf1b47324a83aeceece94269ac04e08 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas Date: Mon, 8 Dec 2025 08:45:32 -0500 Subject: [PATCH] Fix verbosity log tests to use regex matching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The SciMLLogging package now adds a prefix to log messages ("Verbosity toggle: \n ..."), so tests that used exact string matching for log messages were failing. Changed the tests to use regex patterns instead, which matches the message content regardless of any prefix. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- test/verbosity.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/verbosity.jl b/test/verbosity.jl index 1a1687f32..e54334650 100644 --- a/test/verbosity.jl +++ b/test/verbosity.jl @@ -101,19 +101,19 @@ end prob = LinearProblem(A, b) @test_logs (:warn, - "LU factorization failed, falling back to QR factorization. `A` is potentially rank-deficient.") solve( + r"LU factorization failed, falling back to QR factorization\. `A` is potentially rank-deficient\.") solve( prob, verbose = LinearVerbosity(default_lu_fallback = WarnLevel())) @test_logs (:info, - "LU factorization failed, falling back to QR factorization. `A` is potentially rank-deficient.") solve( + r"LU factorization failed, falling back to QR factorization\. `A` is potentially rank-deficient\.") solve( prob, verbose = LinearVerbosity(default_lu_fallback = InfoLevel())) verb = LinearVerbosity(default_lu_fallback = WarnLevel()) @test_logs (:warn, - "LU factorization failed, falling back to QR factorization. `A` is potentially rank-deficient.") solve( + r"LU factorization failed, falling back to QR factorization\. `A` is potentially rank-deficient\.") solve( prob, verbose = verb) end