Changeset 70660 in vbox for trunk/src/VBox/ValidationKit/testmanager/core
- Timestamp:
- Jan 21, 2018 4:18:58 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120396
- Location:
- trunk/src/VBox/ValidationKit/testmanager/core
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/db.py
r69111 r70660 45 45 psycopg2.extensions.register_type(psycopg2.extensions.UNICODE); 46 46 psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY); 47 else: 48 unicode = str; # pylint: disable=redefined-builtin,invalid-name 49 47 50 48 51 -
trunk/src/VBox/ValidationKit/testmanager/core/failurecategory.py
r69111 r70660 30 30 31 31 32 # Standard Python imports. 33 import sys; 34 32 35 # Validation Kit imports. 33 36 from testmanager.core.base import ModelDataBase, ModelLogicBase, TMRowInUse, TMInvalidData, TMRowNotFound, \ 34 37 ChangeLogEntry, AttributeChangeEntry; 35 38 from testmanager.core.useraccount import UserAccountLogic; 39 40 # Python 3 hacks: 41 if sys.version_info[0] >= 3: 42 xrange = range; # pylint: disable=redefined-builtin,invalid-name 36 43 37 44 -
trunk/src/VBox/ValidationKit/testmanager/core/failurereason.py
r69111 r70660 30 30 31 31 32 # Standard Python imports. 33 import sys; 34 32 35 # Validation Kit imports. 33 36 from testmanager.core.base import ModelDataBase, ModelLogicBase, TMRowNotFound, TMInvalidData, TMRowInUse, \ … … 35 38 from testmanager.core.useraccount import UserAccountLogic; 36 39 40 # Python 3 hacks: 41 if sys.version_info[0] >= 3: 42 xrange = range; # pylint: disable=redefined-builtin,invalid-name 37 43 38 44 -
trunk/src/VBox/ValidationKit/testmanager/core/report.py
r69111 r70660 29 29 __version__ = "$Revision$" 30 30 31 32 # Standard Python imports. 33 import sys; 31 34 32 35 # Validation Kit imports. … … 40 43 from testmanager.core.testresults import TestResultLogic, TestResultFilter; 41 44 from common import constants; 45 46 # Python 3 hacks: 47 if sys.version_info[0] >= 3: 48 xrange = range; # pylint: disable=redefined-builtin,invalid-name 42 49 43 50 -
trunk/src/VBox/ValidationKit/testmanager/core/schedulerbase.py
r69111 r70660 33 33 34 34 # Standard python imports. 35 import sys; 35 36 import unittest; 36 37 … … 49 50 from testmanager.core.testcaseargs import TestCaseArgsDataEx, TestCaseArgsLogic; 50 51 from testmanager.core.testset import TestSetData, TestSetLogic; 52 53 # Python 3 hacks: 54 if sys.version_info[0] >= 3: 55 xrange = range; # pylint: disable=redefined-builtin,invalid-name 56 51 57 52 58 … … 303 309 304 310 305 return True;306 307 308 311 309 312 class SchedQueueData(ModelDataBase): … … 420 423 return self; 421 424 422 def next(self):425 def __next__(self): 423 426 """Returns the next build, raises StopIteration when the end has been reached.""" 424 427 while True: … … 432 435 if not oEntry.fRemoved: 433 436 return oEntry; 434 # end 437 return None; # not reached, but make pylint happy (for now). 438 439 def next(self): 440 """ For python 2.x. """ 441 return self.__next__(); 435 442 436 443 class BuildCacheEntry(object): -
trunk/src/VBox/ValidationKit/testmanager/core/testbox.py
r69111 r70660 32 32 # Standard python imports. 33 33 import copy; 34 import sys; 34 35 import unittest; 35 36 … … 40 41 ChangeLogEntry, AttributeChangeEntry, AttributeChangeEntryPre; 41 42 from testmanager.core.useraccount import UserAccountLogic; 43 44 # Python 3 hacks: 45 if sys.version_info[0] >= 3: 46 xrange = range; # pylint: disable=redefined-builtin,invalid-name 42 47 43 48 -
trunk/src/VBox/ValidationKit/testmanager/core/testcase.py
r69111 r70660 33 33 # Standard python imports. 34 34 import copy; 35 import sys; 35 36 import unittest; 36 37 … … 41 42 from testmanager.core.globalresource import GlobalResourceData; 42 43 from testmanager.core.useraccount import UserAccountLogic; 44 45 # Python 3 hacks: 46 if sys.version_info[0] >= 3: 47 long = int; # pylint: disable=redefined-builtin,invalid-name 43 48 44 49 … … 872 877 oTestCase.idTestCase = int(oTestCase.idTestCase); 873 878 oTestCase.initFromDbWithId(oDb, oTestCase.idTestCase); 874 except Exception ,oXcpt:879 except Exception as oXcpt: 875 880 asErrors.append('Test case dependency #%s: %s' % (oTestCase.idTestCase, oXcpt)); 876 881 aoNewValues.append(oTestCase); … … 883 888 oGlobalRsrc.idTestCase = int(oGlobalRsrc.idGlobalRsrc); 884 889 oGlobalRsrc.initFromDbWithId(oDb, oGlobalRsrc.idGlobalRsrc); 885 except Exception ,oXcpt:890 except Exception as oXcpt: 886 891 asErrors.append('Resource dependency #%s: %s' % (oGlobalRsrc.idGlobalRsrc, oXcpt)); 887 892 aoNewValues.append(oGlobalRsrc); -
trunk/src/VBox/ValidationKit/testmanager/core/testresultfailures.py
r69111 r70660 31 31 """ 32 32 __version__ = "$Revision$" 33 33 34 # Standard python imports. 35 import sys; 34 36 import unittest; 35 37 … … 40 42 from testmanager.core.useraccount import UserAccountLogic; 41 43 44 # Python 3 hacks: 45 if sys.version_info[0] >= 3: 46 xrange = range; # pylint: disable=redefined-builtin,invalid-name 42 47 43 48 -
trunk/src/VBox/ValidationKit/testmanager/core/testresults.py
r69111 r70660 31 31 """ 32 32 __version__ = "$Revision$" 33 34 33 35 # Standard python imports. 36 import sys; 34 37 import unittest; 35 38 … … 49 52 from testmanager.core.testresultfailures import TestResultFailureDataEx; 50 53 from testmanager.core.useraccount import UserAccountLogic; 54 55 # Python 3 hacks: 56 if sys.version_info[0] >= 3: 57 long = int; # pylint: disable=redefined-builtin,invalid-name 51 58 52 59 -
trunk/src/VBox/ValidationKit/testmanager/core/webservergluebase.py
r69111 r70660 546 546 dInfo['sys.hexversion'] = sys.hexversion; 547 547 dInfo['sys.api_version'] = sys.api_version; 548 dInfo['sys.subversion'] = sys.subversion; 548 if hasattr(sys, 'subversion'): 549 dInfo['sys.subversion'] = sys.subversion; # pylint: disable=no-member 549 550 dInfo['sys.platform'] = sys.platform; 550 551 dInfo['sys.executable'] = sys.executable;
Note:
See TracChangeset
for help on using the changeset viewer.