summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index d00c0a3f7c..e0350452d5 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -705,7 +705,7 @@ class TestIO < Test::Unit::TestCase
def test_inspect
with_pipe do |r, w|
- assert(r.inspect =~ /^#<IO:0x[0-9a-f]+>$/)
+ assert(r.inspect =~ /^#<IO:fd \d+>$/)
assert_raise(SecurityError) do
safe_4 { r.inspect }
end