VirtualBox

Changeset 90594 in vbox for trunk


Ignore:
Timestamp:
Aug 10, 2021 12:15:27 PM (3 years ago)
Author:
vboxsync
Message:

ValKit: More Python 3.9 API changes needed (Thread.isAlive() -> is_alive()) bugref:10079

Location:
trunk/src/VBox/ValidationKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/txsclient.py

    r84966 r90594  
    503503
    504504        oThread.join(61.0);
    505         return oThread.isAlive();
     505
     506        if sys.version_info < (3, 9, 0):
     507            # Removed since Python 3.9.
     508            return oThread.isAlive(); # pylint: disable=no-member
     509        return oThread.is_alive();
    506510
    507511    def taskThread(self):
     
    22782282        return None;
    22792283    return oSession;
    2280 
  • trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py

    r82968 r90594  
    592592
    593593        oThread.join(61.0);
    594         return oThread.isAlive();
     594
     595        if sys.version_info < (3, 9, 0):
     596            # Removed since Python 3.9.
     597            return oThread.isAlive(); # pylint: disable=no-member
     598        return oThread.is_alive();
    595599
    596600    def taskThread(self):
     
    14631467
    14641468        return fRc;
    1465 
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