Skip to content

core tests broken by #39875 #43004

Closed
@vtjnash

Description

@vtjnash
Member

#39875 broke the core tests (outside of CI), though I don't understand how nobody has noticed since March. We thus must fix these tests and the breakage caused.

core                          (2) |         failed at 2021-11-08T15:28:28.538                                                                                                                                                            
Test Failed at /data/vtjnash/julia1/test/core.jl:3521                                                                                                                                                                                    
  Expression: (Vararg{Int, N} where N <: T) where T                                                                                                                                                                                      
    Expected: ErrorException                                                                                                                                                                                                             
  No exception thrown                                                                                                                                                                                                                    
Test Failed at /data/vtjnash/julia1/test/core.jl:3522                                                                                                                                                                                    
  Expression: Vararg{Int, N} where N <: Integer                                                                                                                                                                                          
    Expected: ErrorException                                                                                                                                                                                                             
  No exception thrown                                                                                                                                                                                                                    
Test Failed at /data/vtjnash/julia1/test/core.jl:3523                                                                                                                                                                                    
  Expression: Vararg{Int, N} where N >: Integer                                                                                                                                                                                          
    Expected: ErrorException                                                                                                                                                                                                             
  No exception thrown                                                                                                                                                                                                                    
                                                                                                                                                                                                                                         

Activity

added
backport 1.6Change should be backported to release-1.6
testThis change adds or pertains to unit tests
on Nov 8, 2021
martinholters

martinholters commented on Nov 9, 2021

@martinholters
Member

With --depwarn=error:

julia> Vararg{Int, N} where N>:Integer
ERROR: Wrapping `Vararg` directly in UnionAll is deprecated (wrap the tuple instead).

So that's why this has gone unnoticed.

DilumAluthge

DilumAluthge commented on Nov 10, 2021

@DilumAluthge
Member

One option would be to run these tests in a Julia subprocess that we start with the --depwarn=error flag.

martinholters

martinholters commented on Nov 10, 2021

@martinholters
Member

That's what happens with e.g. make test anyway, making these tests pass under the usual circumstances. But IIUC it's not what they were intended to test. They were testing for this error:

julia> Vararg{Int, N} where N>:Integer
ERROR: TypeVar in Vararg length must have bounds Union{} and Any

Which went away between 1.5 and 1.6. So I guess we can just delete the tests.

martinholters

martinholters commented on Nov 10, 2021

@martinholters
Member

Ah, they've already been deleted in 1.6 by d06bab0, the backport of #39875, which itself did not delete these tests but in retrospect, it probably should have.

staticfloat

staticfloat commented on Dec 10, 2021

@staticfloat
SponsorMember

@JeffBezanson can you confirm that these tests should be deleted?

added a commit that references this issue on Jan 10, 2022

Fix JuliaLang#43004 by commenting out broken throw tests

749b485
added a commit that references this issue on Jan 13, 2022

Fix #43004 by commenting out broken throw tests (#43739)

89f2332
added 2 commits that reference this issue on Jan 14, 2022

Fix JuliaLang#43004 by commenting out broken throw tests (JuliaLang#4…

7cb5878

Fix JuliaLang#43004 by commenting out broken throw tests (JuliaLang#4…

5ca179c
added a commit that references this issue on Jan 20, 2022

Fix #43004 by commenting out broken throw tests (#43739)

9e5ad01
added a commit that references this issue on Feb 22, 2022

Fix JuliaLang#43004 by commenting out broken throw tests (JuliaLang#4…

dfd21db
added a commit that references this issue on Mar 8, 2022

Fix JuliaLang#43004 by commenting out broken throw tests (JuliaLang#4…

f41ee29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

testThis change adds or pertains to unit tests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @staticfloat@vtjnash@JeffBezanson@DilumAluthge@martinholters

    Issue actions

      core tests broken by #39875 · Issue #43004 · JuliaLang/julia