Skip to content

chore: make file_not_found test more robust#14461

Closed
TwoFX wants to merge 1 commit into
leanprover:masterfrom
TwoFX:julia/filenotfound-win
Closed

chore: make file_not_found test more robust#14461
TwoFX wants to merge 1 commit into
leanprover:masterfrom
TwoFX:julia/filenotfound-win

Conversation

@TwoFX

@TwoFX TwoFX commented Jul 20, 2026

Copy link
Copy Markdown
Member

This PR makes the file_not_found test work on Windows after #14423.

@TwoFX TwoFX added changelog-no Do not include this PR in the release changelog release-ci Enable all CI checks for a PR, like is done for releases labels Jul 20, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jul 20, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase e1832d77d52843fb3e3470b6fe088c103a41c335 --onto 25ba8c3d3bcb1dded7ff5a6f3b6044b0a7970198. You can force Mathlib CI using the force-mathlib-ci label. (2026-07-20 12:48:11)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase e1832d77d52843fb3e3470b6fe088c103a41c335 --onto 49ff95727f98d43984726b26742d17a1ceea9dd5. You can force reference manual CI using the force-manual-ci label. (2026-07-20 12:48:13)

Comment on lines +19 to +21
/-- error: no such file or directory -/
#guard_msgs (substring := true) in
#eval (discard $ IO.FS.Handle.mk nonexistent_file Mode.read : IO Unit)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should presumably use some kind of assertThrows helper that verifies the right IO.Error constructor is raised, and not just its string representation?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks; applied in #14479.

@TwoFX

TwoFX commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

Closing in favor of #14479.

@TwoFX TwoFX closed this Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-no Do not include this PR in the release changelog release-ci Enable all CI checks for a PR, like is done for releases toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants