File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 650650# normalization of paths by include (#26424)
651651@test begin
652652 exc = try ; include (" ./notarealfile.jl" ); " unexpectedly reached!" ; catch exc; exc; end
653- @test exc isa ArgumentError
654- exc. msg
655- end == " including $(repr (joinpath (@__DIR__ , " notarealfile.jl" ))) : No such file"
653+ @test exc isa SystemError
654+ exc. prefix
655+ end == " including file $(repr (joinpath (@__DIR__ , " notarealfile.jl" ))) : No such file"
656656
657657old_act_proj = Base. ACTIVE_PROJECT[]
658658pushfirst! (LOAD_PATH , " @" )
@@ -1542,7 +1542,7 @@ end
15421542 end
15431543
15441544 file = joinpath (depot, " dev" , " non-existent.jl" )
1545- @test_throws ArgumentError (" including $(repr (file)) : No such file" ) include (file)
1545+ @test_throws SystemError (" including file $(repr (file)) : No such file" ) include (file)
15461546 touch (file)
15471547 @test include_dependency (file) === nothing
15481548 chmod (file, 0x000 )
@@ -1552,7 +1552,7 @@ end
15521552 @test include_dependency (dir) === nothing
15531553 dir
15541554 end
1555- @test_throws ArgumentError (" including $(repr (dir)) : No such file or directory" ) include_dependency (dir)
1555+ @test_throws SystemError (" including $(repr (dir)) : No such file or directory" ) include_dependency (dir)
15561556 end
15571557end
15581558
You can’t perform that action at this time.
0 commit comments