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

Work around 1.5 & nightly test failures #1389

Merged
merged 6 commits into from
Aug 9, 2020
Merged

Work around 1.5 & nightly test failures #1389

merged 6 commits into from
Aug 9, 2020

Conversation

mortenpi
Copy link
Member

@mortenpi mortenpi commented Aug 7, 2020

Fix #1337

Comment on lines +425 to +432
if result.output == ""
# This works around a regression in Julia 1.5.0 (https://github.com/JuliaLang/julia/issues/36953)
# Technically, it is only necessary if VERSION >= v"1.5.0-DEV.826"
newcode *= str
newcode *= code[nextind(code, last(inputidx)):end]
else
newcode *= replace(code[nextind(code, last(inputidx)):end], result.output => str, count = 1)
end
Copy link
Member Author

Choose a reason for hiding this comment

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

Instead of disabling the tests, I figured we could just add a workaround here to make sure that Documenter actually works properly on 1.5.0. result.output == "" is simple enough to short-circuit.

@mortenpi mortenpi merged commit a9c3ab7 into master Aug 9, 2020
@mortenpi mortenpi deleted the mp/tests-1.5 branch August 9, 2020 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Doctest fixing broken on Julia 1.5/nightly
1 participant