summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-23 07:24:13 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-23 07:24:13 +0000
commit2140295f0d04de3809bdd1c6742a3f283fe2199b (patch)
treea33efd92aa0f6dae61482a5a765fc9dfd1511a74 /test/ruby
parentf173069a59389774ad06d9f4ee8395584cec5b3a (diff)
downloadruby-2140295f0d04de3809bdd1c6742a3f283fe2199b.tar.gz
ruby-2140295f0d04de3809bdd1c6742a3f283fe2199b.tar.xz
ruby-2140295f0d04de3809bdd1c6742a3f283fe2199b.zip
* io.c (rb_io_inspect): show fd number if there is no pathname.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 d00c0a3f7..e0350452d 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