コード例 #1
0
 def testlibusb0(self):
     """\
     issue#82
     usb.core.USBError: [Errno None] Connection timed out """
     self.assertTrue(isATimeout(USBError('Connection timed out')))
コード例 #2
0
 def testpyusb1a2(self):
     """\
     issue#17
     usb.core.USBError: Operation timed out """
     self.assertTrue(isATimeout(IOError('Operation timed out')))
コード例 #3
0
 def testErrnoTIMEOUT(self):
     """ usb.core.USBError: [Errno 110] Operation timed out """
     self.assertTrue(
         isATimeout(USBError('Operation timed out', errno=errno.ETIMEDOUT)))
コード例 #4
0
 def testlibusb0(self):
     """\
     issue#82
     usb.core.USBError: [Errno None] Connection timed out """
     self.assertTrue(isATimeout(USBError('Connection timed out')))
コード例 #5
0
 def testpyusb1a2(self):
     """\
     issue#17
     usb.core.USBError: Operation timed out """
     self.assertTrue(isATimeout(IOError('Operation timed out')))
コード例 #6
0
 def testErrnoTIMEOUT(self):
     """ usb.core.USBError: [Errno 110] Operation timed out """
     self.assertTrue(isATimeout(USBError('Operation timed out', errno=errno.ETIMEDOUT)))