From 8dc730c6a8e63054d2b6059f3e522dd9aa258dcc Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Sun, 13 Mar 2022 11:37:31 +0100 Subject: [PATCH] Fix tests on Julia 1.9 nightlies A recent change on Julia master (JuliaLang/julia#44096) makes an array of arrays use more precise promotion, which ends up converting `CategoricalArray`s into `Vector`s. --- test/13_arraycommon.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/13_arraycommon.jl b/test/13_arraycommon.jl index 1a913d65..fdb6ec5b 100644 --- a/test/13_arraycommon.jl +++ b/test/13_arraycommon.jl @@ -1952,11 +1952,11 @@ end @testset "repeat" begin for o in (false, true), c in (false, true), i in 0:2, - a in [["b", "a", "b"], ["b" "a"; "b" "c"], - [missing, "a", "b"], ["b" "a"; missing "c"]], - x in [categorical(a, ordered=o, compress=c), + a in (["b", "a", "b"], ["b" "a"; "b" "c"], + [missing, "a", "b"], ["b" "a"; missing "c"]), + x in (categorical(a, ordered=o, compress=c), view(categorical(a, ordered=o, compress=c), axes(a)...), - view(categorical([a a], ordered=o, compress=c), axes(a)...)] + view(categorical([a a], ordered=o, compress=c), axes(a)...)) xr = @inferred repeat(x, i) @test which(repeat, (typeof(x), Int)).module == CategoricalArrays @test typeof(parent(x)) == typeof(xr)