VirtualBox

Changeset 95783 in vbox


Ignore:
Timestamp:
Jul 22, 2022 8:33:53 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152494
Message:

Validation Kit/testdriver/base.py: Use PyHANDLE.int where applicable. Needed for newer pywin32 versions with Python 3.10+.

File:
1 edited

Legend:

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

    r94139 r95783  
    643643                if winbase.processPollByHandle(self.hWin):
    644644                    try:
    645                         (uPid, uStatus) = os.waitpid(self.hWin, 0);
     645                        if hasattr(self.hWin, '__int__'): # Needed for newer pywin32 versions.
     646                            (uPid, uStatus) = os.waitpid(self.hWin.__int__(), 0);
     647                        else:
     648                            (uPid, uStatus) = os.waitpid(self.hWin, 0);
    646649                        if uPid in (self.hWin, self.uPid,):
    647650                            self.hWin.Detach(); # waitpid closed it, so it's now invalid.
Note: See TracChangeset for help on using the changeset viewer.

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