mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Add a pydebug mode only debug print to help debug the errors in
http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/ Will be removed shortly.
This commit is contained in:
		
							parent
							
								
									9179dab3f4
								
							
						
					
					
						commit
						8f6f42621a
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -140,6 +140,10 @@ class HashLibTestCase(unittest.TestCase):
 | 
				
			||||||
        # 2 is for hashlib.name(...) and hashlib.new(name, ...)
 | 
					        # 2 is for hashlib.name(...) and hashlib.new(name, ...)
 | 
				
			||||||
        self.assertGreaterEqual(len(constructors), 2)
 | 
					        self.assertGreaterEqual(len(constructors), 2)
 | 
				
			||||||
        for hash_object_constructor in constructors:
 | 
					        for hash_object_constructor in constructors:
 | 
				
			||||||
 | 
					            if COMPILED_WITH_PYDEBUG:
 | 
				
			||||||
 | 
					                # XXX(gps): This is temporary to debug a buildbot failure.
 | 
				
			||||||
 | 
					                #  http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/
 | 
				
			||||||
 | 
					                print "test_hashlib check calling", hash_object_constructor
 | 
				
			||||||
            computed = hash_object_constructor(data).hexdigest()
 | 
					            computed = hash_object_constructor(data).hexdigest()
 | 
				
			||||||
            self.assertEqual(
 | 
					            self.assertEqual(
 | 
				
			||||||
                    computed, digest,
 | 
					                    computed, digest,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue