mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	gh-128116: Skip test_socket VSOCK testStream() on PermissionError (#128120)
This commit is contained in:
		
							parent
							
								
									0974d7bb86
								
							
						
					
					
						commit
						cbfe3023e4
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -547,7 +547,10 @@ def clientSetUp(self):
 | 
				
			||||||
        self.cli.connect((cid, VSOCKPORT))
 | 
					        self.cli.connect((cid, VSOCKPORT))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def testStream(self):
 | 
					    def testStream(self):
 | 
				
			||||||
 | 
					        try:
 | 
				
			||||||
            msg = self.conn.recv(1024)
 | 
					            msg = self.conn.recv(1024)
 | 
				
			||||||
 | 
					        except PermissionError as exc:
 | 
				
			||||||
 | 
					            self.skipTest(repr(exc))
 | 
				
			||||||
        self.assertEqual(msg, MSG)
 | 
					        self.assertEqual(msg, MSG)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _testStream(self):
 | 
					    def _testStream(self):
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue