Skip to content

Commit 35248a6

Browse files
committed
patched linalg.jl and partition_test.jl soft scope warnings
1 parent 0749072 commit 35248a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ b = ArrayPartition(bb)
88
A = randn(MersenneTwister(123), n+m, n+m)
99

1010
for T in (UpperTriangular, UnitUpperTriangular, LowerTriangular, UnitLowerTriangular)
11-
B = T(A)
11+
local B = T(A)
1212
@test B*Array(B \ b) b
1313
bbb = copy(b)
1414
@test ldiv!(bbb, B, b) === bbb

test/partitions_test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ S = [
111111
]
112112

113113
for sizes in S
114-
x = ArrayPartition( randn.(sizes[1]) )
115-
y = ArrayPartition( zeros.(sizes[2]) )
114+
local x = ArrayPartition( randn.(sizes[1]) )
115+
local y = ArrayPartition( zeros.(sizes[2]) )
116116
y_array = zeros(length(x))
117117
copyto!(y,x) #testing Base.copyto!(dest::ArrayPartition,A::ArrayPartition)
118118
copyto!(y_array,x) #testing Base.copyto!(dest::Array,A::ArrayPartition)

0 commit comments

Comments
 (0)