File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ def test_invalid_ipv4_address
17
17
18
18
def test_invalid_byte_comment
19
19
bug9273 = '[ruby-core:59239] [Bug #9273]'
20
- Tempfile . open ( 'resolv_test_addr_' ) do |tmpfile |
20
+ Tempfile . create ( 'resolv_test_addr_' ) do |tmpfile |
21
21
tmpfile . print ( "\xff \x00 \x40 " )
22
22
tmpfile . close
23
23
hosts = Resolv ::Hosts . new ( tmpfile . path )
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ def test_no_server
153
153
154
154
def test_invalid_byte_comment
155
155
bug9273 = '[ruby-core:59239] [Bug #9273]'
156
- Tempfile . open ( 'resolv_test_dns_' ) do |tmpfile |
156
+ Tempfile . create ( 'resolv_test_dns_' ) do |tmpfile |
157
157
tmpfile . print ( "\xff \x00 \x40 " )
158
158
tmpfile . close
159
159
assert_nothing_raised ( ArgumentError , bug9273 ) do
You can’t perform that action at this time.
0 commit comments