JuliaArrays / JuliaArrays/StaticArrays.jl

`macroexpand` warning in test

Open
#1,102 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
844
Forks
159
Avg merge
3d 21h
Merged PRs (30d)
3

Description

While running the tests on Julia v1.8.2 as well as on nightly, I find a warning

test utils    |    6      6  0.5s
┌ Warning: macroexpand no longer throws a LoadError so `@test_throws LoadError ...` is deprecated and passed without checking the error type!
│   caller = test_expand_error(ex::Expr) at testutil.jl:30

This might need to be updated

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in testutil.jl at test_expand_error(ex::Expr), referenced at line 30, and inspect the @test_throws LoadError usage that triggers the Julia 1.8.2 warning. Run the affected tests on Julia 1.8.2 or nightly; done means the warning is no longer emitted while the test still checks the intended failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
testing
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.