Skip to content

Commit

Permalink
Merge pull request #1913 from ruby/file-open-3.5
Browse files Browse the repository at this point in the history
Use `File.open` instead of `IO.sysopen`
  • Loading branch information
soutaro authored Jul 10, 2024
2 parents af72da8 + 5fc5923 commit d5650b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/stdlib/FileTest_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class FileTestSingletonTest < Test::Unit::TestCase
testing "singleton(::FileTest)"


def with_path_io(path: __FILE__, io: default=IO.open(IO.sysopen(File.expand_path(__FILE__))), &block)
def with_path_io(path: __FILE__, io: default=File.open(File.expand_path(__FILE__)), &block)
with_path(path, &block)
with_io(io, &block)
ensure
Expand Down

0 comments on commit d5650b9

Please sign in to comment.