Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KristofferC opened this issue Mar 5, 2024 · 0 comments
Open

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

KristofferC opened this issue Mar 5, 2024 · 0 comments

Comments

@KristofferC
Copy link

# 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant