diff --git a/test/errorshow.jl b/test/errorshow.jl index 174da6f2bcabbd..782cd2f6445599 100644 --- a/test/errorshow.jl +++ b/test/errorshow.jl @@ -1006,7 +1006,7 @@ let bt end @test res bt_str = sprint(Base.show_backtrace, bt) - @test occursin("simplify_kwargs_type(pos::Int64; kws::@Kwargs{kw1::Float64, kw2::String})", bt_str) + @test occursin("simplify_kwargs_type(pos::$Int; kws::@Kwargs{kw1::Float64, kw2::String})", bt_str) end # Test Base.print_with_compare in convert MethodErrors diff --git a/test/show.jl b/test/show.jl index 34495615a78322..34e969bec82931 100644 --- a/test/show.jl +++ b/test/show.jl @@ -1367,7 +1367,7 @@ test_repr("(:).a") @test repr(@NamedTuple{a::Float64, b}) == "@NamedTuple{a::Float64, b}" # Test general printing of `Base.Pairs` (it should not use the `@Kwargs` macro syntax) -@test repr(@Kwargs{init::Int}) == "Base.Pairs{Symbol, Int64, Tuple{Symbol}, @NamedTuple{init::Int64}}" +@test repr(@Kwargs{init::Int}) == "Base.Pairs{Symbol, $Int, Tuple{Symbol}, @NamedTuple{init::$Int}}" @testset "issue #42931" begin @test repr(NTuple{4, :A}) == "NTuple{4, :A}"