Skip to content

Commit a97889a

Browse files
authored
Merge pull request #2053 from ruby/mkpath
Skip `mkpath` test with 3.4
2 parents 8f8b6db + 5982350 commit a97889a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/stdlib/Pathname_test.rb

+6-4
Original file line numberDiff line numberDiff line change
@@ -458,11 +458,13 @@ def test_mkdir
458458
end
459459

460460
def test_mkpath
461-
Dir.mktmpdir do |dir|
462-
dir = Pathname(dir)
461+
if_ruby(... 3.4) do
462+
Dir.mktmpdir do |dir|
463+
dir = Pathname(dir)
463464

464-
assert_send_type '() -> nil',
465-
dir + 'a/b/c', :mkpath
465+
assert_send_type '() -> nil',
466+
dir + 'a/b/c', :mkpath
467+
end
466468
end
467469
end
468470

0 commit comments

Comments
 (0)