Skip to content

Commit

Permalink
fix new scope assignment warning in Distributed (#49303)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tanmaykm committed Apr 9, 2023
1 parent 1f5e0a2 commit 4ccaa1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/Distributed/test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ clear!(wp)
# default_worker_pool! tests
wp_default = Distributed.default_worker_pool()
try
wp = CachingPool(workers())
local wp = CachingPool(workers())
Distributed.default_worker_pool!(wp)
@test [1:100...] == pmap(x->x, wp, 1:100)
@test !isempty(wp.map_obj2ref)
Expand Down

0 comments on commit 4ccaa1b

Please sign in to comment.