mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	use assert[Not]IsInstance where appropriate
This commit is contained in:
		
							parent
							
								
									f14c7fc33d
								
							
						
					
					
						commit
						b0f5adc3f4
					
				
					 57 changed files with 269 additions and 272 deletions
				
			
		| 
						 | 
				
			
			@ -1141,14 +1141,14 @@ def test_read(self):
 | 
			
		|||
        reader = codecs.getreader("base64_codec")(StringIO.StringIO(sin))
 | 
			
		||||
        sout = reader.read()
 | 
			
		||||
        self.assertEqual(sout, "\x80")
 | 
			
		||||
        self.assertTrue(isinstance(sout, str))
 | 
			
		||||
        self.assertIsInstance(sout, str)
 | 
			
		||||
 | 
			
		||||
    def test_readline(self):
 | 
			
		||||
        sin = "\x80".encode("base64_codec")
 | 
			
		||||
        reader = codecs.getreader("base64_codec")(StringIO.StringIO(sin))
 | 
			
		||||
        sout = reader.readline()
 | 
			
		||||
        self.assertEqual(sout, "\x80")
 | 
			
		||||
        self.assertTrue(isinstance(sout, str))
 | 
			
		||||
        self.assertIsInstance(sout, str)
 | 
			
		||||
 | 
			
		||||
all_unicode_encodings = [
 | 
			
		||||
    "ascii",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue