mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Fix various spots where int/long and str/unicode unification
lead to type checks like isinstance(foo, (str, str)) or isinstance(foo, (int, int)).
This commit is contained in:
		
							parent
							
								
									5d7a7001d9
								
							
						
					
					
						commit
						aa97f04964
					
				
					 14 changed files with 46 additions and 51 deletions
				
			
		| 
						 | 
				
			
			@ -65,7 +65,7 @@ class BaseTest(unittest.TestCase):
 | 
			
		|||
        bi = a.buffer_info()
 | 
			
		||||
        self.assert_(isinstance(bi, tuple))
 | 
			
		||||
        self.assertEqual(len(bi), 2)
 | 
			
		||||
        self.assert_(isinstance(bi[0], (int, int)))
 | 
			
		||||
        self.assert_(isinstance(bi[0], int))
 | 
			
		||||
        self.assert_(isinstance(bi[1], int))
 | 
			
		||||
        self.assertEqual(bi[1], len(a))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue