mirror of https://github.com/python/cpython.git
gh-128116: Skip test_socket VSOCK testStream() on PermissionError (#128120)
This commit is contained in:
parent
0974d7bb86
commit
cbfe3023e4
|
@ -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…
Reference in New Issue