Changeset 79087 in vbox for trunk/src/VBox/ValidationKit/common
- Timestamp:
- Jun 11, 2019 11:58:28 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131247
- Location:
- trunk/src/VBox/ValidationKit/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/common/netutils.py
r76553 r79087 1 1 # -*- coding: utf-8 -*- 2 2 # $Id$ 3 # pylint: disable= C03023 # pylint: disable=too-many-lines 4 4 5 5 """ -
trunk/src/VBox/ValidationKit/common/utils.py
r78472 r79087 1 1 # -*- coding: utf-8 -*- 2 2 # $Id$ 3 # pylint: disable= C03023 # pylint: disable=too-many-lines 4 4 5 5 """ … … 320 320 else: 321 321 try: 322 from fcntl import FD_CLOEXEC, F_GETFD, F_SETFD, fcntl; # pylint: disable= F0401322 from fcntl import FD_CLOEXEC, F_GETFD, F_SETFD, fcntl; # pylint: disable=import-error 323 323 except: 324 324 # On windows, we can use the 'N' flag introduced in Visual C++ 7.0 or 7.1 with python 2.x. … … 399 399 if uPythonVer < ((3 << 16) | 4): 400 400 try: 401 from fcntl import FD_CLOEXEC, F_GETFD, F_SETFD, fcntl; # pylint: disable= F0401401 from fcntl import FD_CLOEXEC, F_GETFD, F_SETFD, fcntl; # pylint: disable=import-error 402 402 except: 403 403 pass; … … 411 411 """ 412 412 try: 413 sRet = os.readlink(sPath); # pylint: disable= E1101413 sRet = os.readlink(sPath); # pylint: disable=no-member 414 414 except: 415 415 return sXcptRet; … … 583 583 cbFreeSpace = oCTypeFreeSpace.value; 584 584 else: 585 oStats = os.statvfs(sPath); # pylint: disable= E1101585 oStats = os.statvfs(sPath); # pylint: disable=no-member 586 586 cbFreeSpace = long(oStats.f_frsize) * oStats.f_bfree; 587 587 … … 685 685 fIsRoot = True; 686 686 try: 687 fIsRoot = os.getuid() == 0; # pylint: disable= E1101687 fIsRoot = os.getuid() == 0; # pylint: disable=no-member 688 688 except: 689 689 pass; … … 797 797 else: 798 798 try: 799 os.kill(uPid, signal.SIGUSR1); # pylint: disable= E1101799 os.kill(uPid, signal.SIGUSR1); # pylint: disable=no-member 800 800 fRc = True; 801 801 except: … … 840 840 else: 841 841 try: 842 os.kill(uPid, signal.SIGKILL); # pylint: disable= E1101842 os.kill(uPid, signal.SIGKILL); # pylint: disable=no-member 843 843 fRc = True; 844 844 except: … … 898 898 if sys.platform == 'win32': 899 899 try: 900 from win32com.client import GetObject; # pylint: disable= F0401900 from win32com.client import GetObject; # pylint: disable=import-error 901 901 oWmi = GetObject('winmgmts:'); 902 902 aoProcesses = oWmi.InstancesOf('Win32_Process'); … … 1092 1092 1093 1093 1094 def processListAll(): # pylint: disable=R09141094 def processListAll(): 1095 1095 """ 1096 1096 Return a list of ProcessInfo objects for all the processes in the system … … 1101 1101 sOs = getHostOs(); 1102 1102 if sOs == 'win': 1103 from win32com.client import GetObject; # pylint: disable= F04011103 from win32com.client import GetObject; # pylint: disable=import-error 1104 1104 oWmi = GetObject('winmgmts:'); 1105 1105 aoProcesses = oWmi.InstancesOf('Win32_Process'); … … 2138 2138 # 2139 2139 2140 # pylint: disable= C01112140 # pylint: disable=missing-docstring 2141 2141 # pylint: disable=undefined-variable 2142 2142 class BuildCategoryDataTestCase(unittest.TestCase): -
trunk/src/VBox/ValidationKit/common/webutils.py
r76553 r79087 190 190 # 191 191 192 # pylint: disable= C0111192 # pylint: disable=missing-docstring 193 193 class CommonUtilsTestCase(unittest.TestCase): 194 194 def testHasSchema(self):
Note:
See TracChangeset
for help on using the changeset viewer.