| platform.python_implementation()) | ||
| info_add('platform.platform', | ||
| platform.platform(aliased=True)) | ||
| platform.platform(aliased=True, terse=True)) |
There was a problem hiding this comment.
It seems like terse=True returns less information.
platform.platform(aliased=True)
'Linux-4.16.14-300.fc28.x86_64-x86_64-with-fedora-28-Twenty_Eight'
platform.platform(aliased=True,terse=True)
'Linux-4.16.14-300.fc28.x86_64-x86_64-with-glibc2.3.4'
There was a problem hiding this comment.
The distribution info. platform.dist is deprecated long ago and the buildbot already tells us what the exact distribution is. The info is already not available in master.
|
Thanks @zhangyangyu for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6. |
…ythonGH-7797) (cherry picked from commit 71ca738) Co-authored-by: Xiang Zhang <angwerzx@126.com>
|
GH-7802 is a backport of this pull request to the 3.6 branch. |
|
GH-7803 is a backport of this pull request to the 2.7 branch. |
…ythonGH-7797) (cherry picked from commit 71ca738) Co-authored-by: Xiang Zhang <angwerzx@126.com>
I suggest using
platform.platform(aliased=True, terse=True)in test.pythoninfo in < 3.8. This makes it more consistent with 3.8.platform.platformis largely changed in 3.8. More specially, I want libc version to be included in pythoninfo. Although libc version is wrong now but I think it will be fixed soon.https://bugs.python.org/issue33717