File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed
Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -775,8 +775,10 @@ if VERSION < v"0.7.0-DEV.2655"
775775 export eigs, svds
776776 end
777777elseif VERSION < v" 0.7.0-DEV.3019"
778- import IterativeEigenSolvers
779- const IterativeEigensolvers = IterativeEigenSolvers
778+ @eval module IterativeEigensolvers
779+ using IterativeEigenSolvers: eigs, svds
780+ export eigs, svds
781+ end
780782else
781783 import IterativeEigensolvers
782784end
Original file line number Diff line number Diff line change @@ -630,11 +630,16 @@ using Compat: StringVector
630630@test String(fill!(StringVector(5 ), 0x61 )) == " aaaaa"
631631
632632# collect
633- using OffsetArrays
634- a = OffsetArray(1 : 3 , - 1 : 1 )
635- b = Compat. collect(a)
636- @test indices(b) === (Base. OneTo(3 ),)
637- @test b == [1 ,2 ,3 ]
633+ if VERSION < v" 0.7.0-"
634+ # Note: This is disabled on 0.7, since the Compat.collect functionality is only
635+ # applicable on 0.5, and OffsetArrays currently has some incompatibilities with
636+ # 0.7. This can be reenabled later if needed.
637+ using OffsetArrays
638+ a = OffsetArray(1 : 3 , - 1 : 1 )
639+ b = Compat. collect(a)
640+ @test indices(b) === (Base. OneTo(3 ),)
641+ @test b == [1 ,2 ,3 ]
642+ end
638643
639644# PR 22064
640645module Test22064
You can’t perform that action at this time.
0 commit comments