Skip to content

Fix tests #448

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

Merged
merged 3 commits into from
Jul 2, 2024
Merged

Fix tests #448

merged 3 commits into from
Jul 2, 2024

Conversation

LilithHafner
Copy link
Member

@LilithHafner LilithHafner commented Jul 2, 2024

@@ -314,7 +314,8 @@ function ParseStream(text::AbstractString, index::Integer=1; version=VERSION)
end

# IO-based cases
function ParseStream(io::IOBuffer; version=VERSION)
# TODO: switch ParseStream to use a Memory internally on newer versions of Julia
VERSION < v"1.11.0-DEV.753" && function ParseStream(io::IOBuffer; version=VERSION)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This special case is not valid on new Julias where the internal io.data field is not a Vector.

@LilithHafner LilithHafner merged commit 8fc81be into main Jul 2, 2024
30 checks passed
@LilithHafner LilithHafner deleted the lh/fix-tests branch July 2, 2024 17:38
@c42f
Copy link
Member

c42f commented Jul 18, 2024

Thanks for fixing this 💕

c42f pushed a commit that referenced this pull request Jul 21, 2024
* Don't assume (io::IOBuffer).data is a Vector on new versions of Julia

* Exclude test/subtype.jl from corpus due to new dependence on where precedence (#395)
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

Successfully merging this pull request may close these issues.

2 participants