diff --git a/test/spawn.jl b/test/spawn.jl index 4f826b05df93d..ddc5aaefee00f 100644 --- a/test/spawn.jl +++ b/test/spawn.jl @@ -713,7 +713,7 @@ end @test strip(String(read(cmd))) == "baz bar" # Test that `addenv()` works properly with `inherit` - withenv("FOO" => "foo") do + withenv("FOO" => "foo", "BAR" => nothing) do cmd = Cmd(`$shcmd -c "echo \$FOO \$BAR"`) @test strip(String(read(cmd))) == "foo"