mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	test_tempfile.rb: suppress warnings
* test/test_tempfile.rb (test_tempfile_is_unlinked_when_ruby_exits): no error should emit. * test/test_tempfile.rb (test_tempfile_encoding_ascii8bit): remove unused variable. * test/test_tempfile.rb (test_tempfile_encoding_ascii8bit2): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									4305eb8e6c
								
							
						
					
					
						commit
						7800a4b566
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -203,6 +203,7 @@ File.open(path, "w").close | |||
| puts Tempfile.new('foo').path | ||||
|     EOS | ||||
|       assert !File.exist?(filename) | ||||
|       assert_nil(error) | ||||
|     end | ||||
|   end | ||||
| 
 | ||||
|  | @ -294,7 +295,6 @@ puts Tempfile.new('foo').path | |||
|   end | ||||
| 
 | ||||
|   def test_tempfile_encoding_ascii8bit | ||||
|     default_external=Encoding.default_external | ||||
|     t = tempfile("TEST",:encoding=>"ascii-8bit") | ||||
|     t.write("\xE6\x9D\xBE\xE6\xB1\x9F") | ||||
|     t.rewind | ||||
|  | @ -302,7 +302,6 @@ puts Tempfile.new('foo').path | |||
|   end | ||||
| 
 | ||||
|   def test_tempfile_encoding_ascii8bit2 | ||||
|     default_external=Encoding.default_external | ||||
|     t = tempfile("TEST",Dir::tmpdir,:encoding=>"ascii-8bit") | ||||
|     t.write("\xE6\x9D\xBE\xE6\xB1\x9F") | ||||
|     t.rewind | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu