Changeset 69561 in vbox for trunk/src/VBox
- Timestamp:
- Nov 3, 2017 11:46:58 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r69558 r69561 584 584 if not fPassive: 585 585 if sys.platform == 'win32': 586 from win32com.server.util import unwrap # pylint: disable= F0401586 from win32com.server.util import unwrap # pylint: disable=import-error 587 587 oRet = unwrap(oRet); 588 588 oRet.oListener = oListener; … … 1279 1279 1280 1280 try: 1281 # pylint: disable= F04011281 # pylint: disable=import-error 1282 1282 from vboxapi import VirtualBoxManager 1283 1283 if self.sHost == 'win': … … 1287 1287 from xpcom import Exception as NativeComExceptionClass 1288 1288 from xpcom import nsError as NativeComErrorClass 1289 # pylint: enable= F04011289 # pylint: enable=import-error 1290 1290 except: 1291 1291 traceback.print_exc(); … … 1362 1362 if self.sHost == 'win': 1363 1363 try: 1364 import pythoncom; # pylint: disable= F04011364 import pythoncom; # pylint: disable=import-error 1365 1365 pythoncom.CoInitializeEx(0); # pylint: disable=no-member 1366 1366 pythoncom.CoInitializeEx(0); # pylint: disable=no-member … … 1383 1383 if oXcpt is None: oXcpt = sys.exc_info()[1]; 1384 1384 if sys.platform == 'win32': 1385 import winerror; # pylint: disable= F04011385 import winerror; # pylint: disable=import-error 1386 1386 hrXcpt = oXcpt.hresult; 1387 1387 if hrXcpt == winerror.DISP_E_EXCEPTION: … … 1408 1408 if oXcpt is None: oXcpt = sys.exc_info()[1]; 1409 1409 if sys.platform == 'win32': 1410 from pythoncom import com_error as NativeComExceptionClass # pylint: disable= F0401,E06111410 from pythoncom import com_error as NativeComExceptionClass # pylint: disable=import-error,E0611 1411 1411 else: 1412 from xpcom import Exception as NativeComExceptionClass # pylint: disable= F04011412 from xpcom import Exception as NativeComExceptionClass # pylint: disable=import-error 1413 1413 return isinstance(oXcpt, NativeComExceptionClass); 1414 1414 … … 1471 1471 if self.sHost == 'win': 1472 1472 try: 1473 import pythoncom; # pylint: disable= F04011473 import pythoncom; # pylint: disable=import-error 1474 1474 cIfs = pythoncom._GetInterfaceCount(); # pylint: disable=no-member,protected-access 1475 1475 cObjs = pythoncom._GetGatewayCount(); # pylint: disable=no-member,protected-access … … 1478 1478 else: 1479 1479 reporter.log('actionCleanupAfter: Python COM still has %s objects and %s interfaces...' % ( cObjs, cIfs)); 1480 from win32com.client import DispatchBaseClass; 1480 from win32com.client import DispatchBaseClass; # pylint: disable=import-error 1481 1481 for oObj in gc.get_objects(): 1482 1482 if isinstance(oObj, DispatchBaseClass): … … 1487 1487 else: 1488 1488 try: 1489 from xpcom import _xpcom as _xpcom; # pylint: disable= F04011489 from xpcom import _xpcom as _xpcom; # pylint: disable=import-error 1490 1490 hrc = _xpcom.NS_ShutdownXPCOM(); 1491 1491 cIfs = _xpcom._GetInterfaceCount(); # pylint: disable=W0212
Note:
See TracChangeset
for help on using the changeset viewer.