VirtualBox

Ignore:
Timestamp:
Jan 21, 2018 4:18:58 PM (7 years ago)
Author:
vboxsync
Message:

ValidationKit: Python 3 and pylint 1.8.1 adjustments/fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/api/tdPython1.py

    r69111 r70660  
    3636import time
    3737import threading
    38 import types
    3938
    4039# Only the main script needs to modify the path.
     
    107106                    reporter.errorXcpt();
    108107                    break;
    109                 if not isinstance(rc, types.IntType):
     108                if not isinstance(rc, int):
    110109                    reporter.error('waitForEvents returns non-integer type');
    111110                    break;
     
    204203
    205204                    # Check the return code and elapsed time.
    206                     if not isinstance(rc, types.IntType):
     205                    if not isinstance(rc, int):
    207206                        reporter.error('waitForEvents returns non-integer type after %u ms, expected 1' % (msElapsed,));
    208207                    elif rc != 1:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette