Enable platform.platform

This commit is contained in:
Aviv Palivoda committed 2020-02-06 21:53:31 +02:00
1 parent 7202ad303d
commit 8baaa5d508
2 files changed
+4 -3

No files matched your search

+2
View File
@@ -171,6 +171,8 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
The file is read and scanned in chunks of chunksize bytes.
"""
# TODO: fix RustPython
return (lib, version)
if executable is None:
try:
ver = os.confstr('CS_GNU_LIBC_VERSION')
+2 -3
View File
@@ -428,9 +428,8 @@ class Regrtest:
def display_header(self):
# Print basic platform information
print("==", platform.python_implementation(), *sys.version.split())
# TODO: Add platform.platform
# print("==", platform.platform(aliased=True),
# "%s-endian" % sys.byteorder)
print("==", platform.platform(aliased=True),
"%s-endian" % sys.byteorder)
print("== cwd:", os.getcwd())
cpu_count = os.cpu_count()
if cpu_count: