Skip to content

Commit

Permalink
Use File.open instead of IO.sysopen
Browse files Browse the repository at this point in the history
  • Loading branch information
soutaro committed Jul 10, 2024
1 parent af72da8 commit 5fc5923
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 5fc5923

Please sign in to comment.