diff options
Diffstat (limited to 'test/resolv/test_dns.rb')
-rw-r--r-- | test/resolv/test_dns.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb index 82f37f9e6a..94a248e5fe 100644 --- a/test/resolv/test_dns.rb +++ b/test/resolv/test_dns.rb @@ -153,7 +153,7 @@ class TestResolvDNS < Test::Unit::TestCase def test_invalid_byte_comment bug9273 = '[ruby-core:59239] [Bug #9273]' - Tempfile.open('resolv_test_dns_') do |tmpfile| + Tempfile.create('resolv_test_dns_') do |tmpfile| tmpfile.print("\xff\x00\x40") tmpfile.close assert_nothing_raised(ArgumentError, bug9273) do |