Changeset 79092 in vbox for trunk/src/VBox/ValidationKit/tests/usb
- Timestamp:
- Jun 11, 2019 3:26:40 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131252
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py
r79087 r79092 384 384 self.abReadAheadHdr = array.array('B'); 385 385 else: 386 abHdr = self.recvBytes(16, cMsTimeout, fNoDataOk); 386 abHdr = self.recvBytes(16, cMsTimeout, fNoDataOk); # (virtual method) # pylint: disable=assignment-from-none 387 387 if abHdr is None: 388 388 return (None, None, None); … … 413 413 else: 414 414 cbPadding = 0; 415 abPayload = self.recvBytes(cbMsg - 16 + cbPadding, cMsTimeout, False); 415 abPayload = self.recvBytes(cbMsg - 16 + cbPadding, cMsTimeout, False); # pylint: disable=assignment-from-none 416 416 if abPayload is None: 417 417 self.abReadAheadHdr = abHdr; … … 644 644 if cMsLeft <= cMsMin: 645 645 return cMsMin; 646 if cMsLeft > cMsMax and cMsMax> 0:646 if cMsLeft > cMsMax > 0: 647 647 return cMsMax 648 648 return cMsLeft; … … 985 985 if oXcpt[0] == errno.EWOULDBLOCK: 986 986 return True; 987 if utils.getHostOs == 'win' and oXcpt[0] == errno.WSAEWOULDBLOCK: # pylint: disable=no-member987 if utils.getHostOs() == 'win' and oXcpt[0] == errno.WSAEWOULDBLOCK: # pylint: disable=no-member 988 988 return True; 989 989 except: pass; … … 1088 1088 if rc is True: 1089 1089 pass; 1090 elif iRc == errno.ECONNREFUSED \ 1091 or iRc == errno.EHOSTUNREACH \ 1092 or iRc == errno.EINTR \ 1093 or iRc == errno.ENETDOWN \ 1094 or iRc == errno.ENETUNREACH \ 1095 or iRc == errno.ETIMEDOUT: 1090 elif iRc in (errno.ECONNREFUSED, errno.EHOSTUNREACH, errno.EINTR, errno.ENETDOWN, errno.ENETUNREACH, errno.ETIMEDOUT): 1096 1091 rc = False; # try again. 1097 1092 else:
Note:
See TracChangeset
for help on using the changeset viewer.