stella.stamenova created this revision. stella.stamenova added reviewers: labath, davide, asmith, shafik. Herald added a subscriber: lldb-commits.
On non-mac platforms, mac_ver returns an empty string which when converted to LooseVersion has no "version" property. This causes a failure when the decorator executes. Instead, check whether the value returned from mac_ver is an empty string and avoid the LooseVersion comparison. Repository: rLLDB LLDB https://reviews.llvm.org/D53208 Files: packages/Python/lldbsuite/test/decorators.py Index: packages/Python/lldbsuite/test/decorators.py =================================================================== --- packages/Python/lldbsuite/test/decorators.py +++ packages/Python/lldbsuite/test/decorators.py @@ -191,7 +191,7 @@ skip_for_py_version = ( py_version is None) or _check_expected_version( py_version[0], py_version[1], sys.version_info) - skip_for_macos_version = (macos_version is None) or ( + skip_for_macos_version = (macos_version is None) or (platform.mac_ver()[0] == "") or ( _check_expected_version( macos_version[0], macos_version[1],
Index: packages/Python/lldbsuite/test/decorators.py =================================================================== --- packages/Python/lldbsuite/test/decorators.py +++ packages/Python/lldbsuite/test/decorators.py @@ -191,7 +191,7 @@ skip_for_py_version = ( py_version is None) or _check_expected_version( py_version[0], py_version[1], sys.version_info) - skip_for_macos_version = (macos_version is None) or ( + skip_for_macos_version = (macos_version is None) or (platform.mac_ver()[0] == "") or ( _check_expected_version( macos_version[0], macos_version[1],
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits