mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	- Typo in message for TestCase.failIfEqual()
- Removed unused variable 'opts' in TestProgram.__init__ (thanks to PyChecker)
This commit is contained in:
		
							parent
							
								
									f3ee46b82a
								
							
						
					
					
						commit
						ab0648ffc0
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -277,7 +277,7 @@ def failIfEqual(self, first, second, msg=None): | ||||||
|            operator. |            operator. | ||||||
|         """ |         """ | ||||||
|         if first == second: |         if first == second: | ||||||
|             raise self.failureException, (msg or '%s != %s' % (first, second)) |             raise self.failureException, (msg or '%s == %s' % (first, second)) | ||||||
| 
 | 
 | ||||||
|     assertEqual = assertEquals = failUnlessEqual |     assertEqual = assertEquals = failUnlessEqual | ||||||
| 
 | 
 | ||||||
|  | @ -672,7 +672,6 @@ def parseArgs(self, argv): | ||||||
|         try: |         try: | ||||||
|             options, args = getopt.getopt(argv[1:], 'hHvq', |             options, args = getopt.getopt(argv[1:], 'hHvq', | ||||||
|                                           ['help','verbose','quiet']) |                                           ['help','verbose','quiet']) | ||||||
|             opts = {} |  | ||||||
|             for opt, value in options: |             for opt, value in options: | ||||||
|                 if opt in ('-h','-H','--help'): |                 if opt in ('-h','-H','--help'): | ||||||
|                     self.usageExit() |                     self.usageExit() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Steve Purcell
						Steve Purcell