Skip to content

Commit c2abaee

Browse files
Distributed, SHA tests: fix soft scope shadowing (#34472)
1 parent 5c635ad commit c2abaee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/Distributed/test/distributed_exec.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ nprocs()>1 && rmprocs(workers())
15571557
cluster_cookie("")
15581558

15591559
for close_stdin in (true, false), stderr_to_stdout in (true, false)
1560-
npids = addprocs_with_testenv(RetainStdioTester(close_stdin,stderr_to_stdout))
1560+
local npids = addprocs_with_testenv(RetainStdioTester(close_stdin,stderr_to_stdout))
15611561
@test remotecall_fetch(myid, npids[1]) == npids[1]
15621562
@test close_stdin != remotecall_fetch(()->isopen(stdin), npids[1])
15631563
@test stderr_to_stdout == remotecall_fetch(()->(stderr === stdout), npids[1])
@@ -1621,7 +1621,7 @@ a27933 = :_not_defined_27933
16211621

16221622
# PR #28651
16231623
for T in (UInt8, Int8, UInt16, Int16, UInt32, Int32, UInt64)
1624-
n = @distributed (+) for i in Base.OneTo(T(10))
1624+
local n = @distributed (+) for i in Base.OneTo(T(10))
16251625
i
16261626
end
16271627
@test n == 55

stdlib/SHA/test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ end
275275
# test error if eltype of input is not UInt8
276276
for f in sha_funcs
277277
global nerrors
278-
data = UInt32[0x23467, 0x324775]
278+
local data = UInt32[0x23467, 0x324775]
279279
try
280280
f(data)
281281
catch ex

0 commit comments

Comments
 (0)