Getting incorrect macos version (macos 10.16) using Python where runs-on set to macos-latest (11.6.8) #6099
-
why python returns incorrect macos version 10.16 instead of 11.6.8? Image Release: https://github.com/actions/virtual-environments/releases/tag/macOS-11%2F20220807.1 `Run python -c "import platform; print(platform.mac_ver()); print(platform.platform()); print(platform.uname()); print(open('/System/Library/CoreServices/SystemVersion.plist').read())" ('10.16', ('', '', ''), 'x86_64') |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Any suggestion on this? |
Beta Was this translation helpful? Give feedback.
-
Thank you @al-cheb for your help. Used above approach only and it worked. I was using tox command ( run: tox -e unit)to run the test cases and there it was unable to detect SYSTEM_VERSION_COMPAT variable. After lot of search got to know, we need to set the reference in tox.ini file as well and it worked. reference- https://tox.wiki/en/latest/config.html ##################### [testenv] OR [testenv] ############################ |
Beta Was this translation helpful? Give feedback.
Any suggestion on this?