From 20b1ece4c69132f551f82cb89b6b7e250483eb20 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 15 Feb 2024 12:04:23 +1300 Subject: [PATCH] Fix tests for Julia master --- test/Bridges/lazy_bridge_optimizer.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/Bridges/lazy_bridge_optimizer.jl b/test/Bridges/lazy_bridge_optimizer.jl index 582d3310cf..0e3106d250 100644 --- a/test/Bridges/lazy_bridge_optimizer.jl +++ b/test/Bridges/lazy_bridge_optimizer.jl @@ -722,9 +722,7 @@ function _test_SDPA_debug(T) model = StandardSDPAModel{T}() bridged = MOI.Bridges.LazyBridgeOptimizer(model) function debug_string(f, args...) - s = IOBuffer() - f(bridged, args...; io = s) - return String(resize!(s.data, s.size)) + return sprint(io -> f(bridged, args...; io = io)) end @testset "LessThan variables" begin S = MOI.LessThan{T}