Skip to content

Commit

Permalink
fix for StatStruct show test from #39463
Browse files Browse the repository at this point in the history
Need to check for the correct substring.
  • Loading branch information
vtjnash committed Jun 2, 2021
1 parent fd905fa commit 1a01667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/file.jl
Expand Up @@ -1610,7 +1610,7 @@ end
f, io = mktemp()
s = stat(f)
stat_show_str = sprint(show, s)
@test occursin(f, stat_show_str)
@test occursin(repr(f), stat_show_str)
if Sys.iswindows()
@test occursin("mode: 0o100666 (-rw-rw-rw-)", stat_show_str)
else
Expand All @@ -1623,7 +1623,7 @@ end
d = mktempdir()
s = stat(d)
stat_show_str = sprint(show, s)
@test occursin(d, stat_show_str)
@test occursin(repr(d), stat_show_str)
if Sys.iswindows()
@test occursin("mode: 0o040666 (drw-rw-rw-)", stat_show_str)
else
Expand Down

0 comments on commit 1a01667

Please sign in to comment.