Skip to content

New types being "public" in Base causes tests to fail in 1.11. #102

@KristofferC

Description

@KristofferC
# 1.11
julia> :UUID in propertynames(Base)
true

# 1.10
julia> :UUID in propertynames(Base)
false

Causes this test to fail:

@testset "Built in Julia types" begin
# tuples containing (module, property)
core_properties = map(x -> (Core,x), propertynames(Core))
base_properties = map(x -> (Base,x), propertynames(Base))
for (m, n) in [core_properties; base_properties]
prop = getproperty(m,n)
if typeof(prop) == DataType
struct_type = StructTypes.StructType(prop)
cond = prop <: builtin_type_mapping[StructTypes.StructType(prop)]
if !cond
@warn "Built in type $m.$n is incorrectly parsed as $(StructTypes.StructType(prop))"
end
@test cond
end
end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions