mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Errors in "client" methods in test_socket were ignored because of a bogus except clause.
(this could reveal test failures!)
This commit is contained in:
		
							parent
							
								
									cbfb9a56e6
								
							
						
					
					
						commit
						b7eb563a2a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import unittest
 | 
					import unittest
 | 
				
			||||||
from test import support
 | 
					from test import support
 | 
				
			||||||
 | 
					from unittest.case import _ExpectedFailure
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import errno
 | 
					import errno
 | 
				
			||||||
import io
 | 
					import io
 | 
				
			||||||
| 
						 | 
					@ -241,7 +242,7 @@ def clientRun(self, test_func):
 | 
				
			||||||
            raise TypeError("test_func must be a callable function")
 | 
					            raise TypeError("test_func must be a callable function")
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            test_func()
 | 
					            test_func()
 | 
				
			||||||
        except unittest._ExpectedFailure:
 | 
					        except _ExpectedFailure:
 | 
				
			||||||
            # We deliberately ignore expected failures
 | 
					            # We deliberately ignore expected failures
 | 
				
			||||||
            pass
 | 
					            pass
 | 
				
			||||||
        except BaseException as e:
 | 
					        except BaseException as e:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue