|
1 | 1 | println("these tests will print warnings: ")
|
2 | 2 |
|
3 | 3 | @testset "Not installed" begin
|
4 |
| - Core.eval(Base, :(is_interactive = true)) # for interactive error handling |
5 |
| - |
6 | 4 | add_format(format"NotInstalled", (), ".not_installed", [:NotInstalled])
|
7 |
| - stdin_copy = stdin |
8 |
| - stderr_copy = stderr |
9 |
| - rs, wr = redirect_stdin() |
10 |
| - rserr, wrerr = redirect_stderr() |
11 |
| - ref = @async save("test.not_installed", nothing) |
12 |
| - println(wr, "y") |
13 |
| - @test_throws Pkg.Types.CommandError fetch(ref) #("unknown package NotInstalled") |
14 |
| - ref = @async save("test.not_installed", nothing) |
15 |
| - println(wr, "invalid") #test invalid input |
16 |
| - println(wr, "n") # don't install |
17 |
| - fetch(ref) |
18 |
| - @test istaskdone(ref) |
19 |
| - |
20 |
| - close(rs);close(wr);close(rserr);close(wrerr) |
21 |
| - redirect_stdin(stdin_copy) |
22 |
| - redirect_stderr(stderr_copy) |
| 5 | + @test_throws ArgumentError save("test.not_installed", nothing) |
| 6 | + |
| 7 | + # Core.eval(Base, :(is_interactive = true)) # for interactive error handling |
| 8 | + # add_format(format"NotInstalled", (), ".not_installed", [:NotInstalled]) |
| 9 | + # stdin_copy = stdin |
| 10 | + # stderr_copy = stderr |
| 11 | + # rs, wr = redirect_stdin() |
| 12 | + # rserr, wrerr = redirect_stderr() |
| 13 | + # ref = @async save("test.not_installed", nothing) |
| 14 | + # println(wr, "y") |
| 15 | + # @test_throws ArgumentError fetch(ref) #("unknown package NotInstalled") |
| 16 | + # ref = @async save("test.not_installed", nothing) |
| 17 | + # println(wr, "invalid") #test invalid input |
| 18 | + # println(wr, "n") # don't install |
| 19 | + # fetch(ref) |
| 20 | + # @test istaskdone(ref) |
| 21 | + |
| 22 | + # close(rs);close(wr);close(rserr);close(wrerr) |
| 23 | + # redirect_stdin(stdin_copy) |
| 24 | + # redirect_stderr(stderr_copy) |
23 | 25 |
|
24 |
| - Core.eval(Base, :(is_interactive = false)) # for interactive error handling |
| 26 | + # Core.eval(Base, :(is_interactive = false)) # for interactive error handling |
25 | 27 |
|
26 | 28 | end
|
27 | 29 |
|
|
0 commit comments