Skip to content

Commit 3300a81

Browse files
committed
Test suite: Use using Foo: bar, baz or import Foo (but never bare using Foo)
1 parent 7241a23 commit 3300a81

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/runtests.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
#!/usr/bin/env julia
2-
3-
using Distributed, Test, SlurmClusterManager
1+
# We don't use `using Foo` here.
2+
# We either use `using Foo: hello, world`, or we use `import Foo`.
3+
# https://github.com/JuliaLang/julia/pull/42080
4+
import SlurmClusterManager
5+
import Distributed
6+
import Test
7+
8+
# Bring some names into scope, just for convenience:
9+
using Test: @testset, @test
410

511
# test that slurm is available
612
@test !(Sys.which("sinfo") === nothing)

0 commit comments

Comments
 (0)