mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
[3.13] gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120) (#128123)
gh-128116: Skip test_socket VSOCK testStream() on PermissionError (GH-128120)
(cherry picked from commit cbfe3023e4)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
f320f747da
commit
43586a4804
1 changed files with 4 additions and 1 deletions
|
|
@ -548,7 +548,10 @@ def clientSetUp(self):
|
|||
self.cli.connect((cid, VSOCKPORT))
|
||||
|
||||
def testStream(self):
|
||||
msg = self.conn.recv(1024)
|
||||
try:
|
||||
msg = self.conn.recv(1024)
|
||||
except PermissionError as exc:
|
||||
self.skipTest(repr(exc))
|
||||
self.assertEqual(msg, MSG)
|
||||
|
||||
def _testStream(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue