Skip to content

Commit 0d28812

Browse files
tanmaykmKristofferC
authored andcommitted
fix new scope assignment warning in Distributed (#49303)
Disambiguate scope of the `wp` variable inside `try`-`catch` in distributed tests by qualifying it and suppress the warning reported in the tests. fixes #49289 (cherry picked from commit 4ccaa1b)
1 parent b82c5db commit 0d28812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Distributed/test/distributed_exec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ clear!(wp)
678678
# default_worker_pool! tests
679679
wp_default = Distributed.default_worker_pool()
680680
try
681-
wp = CachingPool(workers())
681+
local wp = CachingPool(workers())
682682
Distributed.default_worker_pool!(wp)
683683
@test [1:100...] == pmap(x->x, wp, 1:100)
684684
@test !isempty(wp.map_obj2ref)

0 commit comments

Comments
 (0)