From 5fc5923232e9a26122b684eb495770dba1c34e9d Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Wed, 26 Jun 2024 12:55:08 +0900 Subject: [PATCH] Use `File.open` instead of `IO.sysopen` --- test/stdlib/FileTest_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/stdlib/FileTest_test.rb b/test/stdlib/FileTest_test.rb index 77b8f3873..eccfbc846 100644 --- a/test/stdlib/FileTest_test.rb +++ b/test/stdlib/FileTest_test.rb @@ -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