Skip to content

Commit 0432ea3

Browse files
authored
fix for StatStruct show test from JuliaLang#39463 (JuliaLang#41060)
Need to check for the correct substring.
1 parent a3243a0 commit 0432ea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/file.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ end
16101610
f, io = mktemp()
16111611
s = stat(f)
16121612
stat_show_str = sprint(show, s)
1613-
@test occursin(f, stat_show_str)
1613+
@test occursin(repr(f), stat_show_str)
16141614
if Sys.iswindows()
16151615
@test occursin("mode: 0o100666 (-rw-rw-rw-)", stat_show_str)
16161616
else
@@ -1623,7 +1623,7 @@ end
16231623
d = mktempdir()
16241624
s = stat(d)
16251625
stat_show_str = sprint(show, s)
1626-
@test occursin(d, stat_show_str)
1626+
@test occursin(repr(d), stat_show_str)
16271627
if Sys.iswindows()
16281628
@test occursin("mode: 0o040666 (drw-rw-rw-)", stat_show_str)
16291629
else

0 commit comments

Comments
 (0)