VirtualBox

Ignore:
Timestamp:
Feb 2, 2018 10:31:45 PM (7 years ago)
Author:
vboxsync
Message:

ValidationKit/tdMoveMedium: Don't use os.path.samefile() on Windows as it is not available in python 2.x

File:
1 edited

Legend:

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

    r70855 r70857  
    9090            sFilePath = os.path.join(sLocation, asFiles[oAttachment.port])
    9191            sActualFilePath = oAttachment.medium.location
    92             if not os.path.samefile(sFilePath, sActualFilePath):
     92            # @todo os.path.samefile() is not available on Windows in python 2.x
     93            if     sys.platform != 'win32' \
     94               and not os.path.samefile(sFilePath, sActualFilePath):
    9395                reporter.log('medium location expected to be "%s" but is "%s"' % (sFilePath, sActualFilePath))
    9496                fRc = False;
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