Skip to content

Commit 8baaa5d

Browse files
committed
Enable platform.platform
1 parent 7202ad3 commit 8baaa5d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Lib/platform.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
171171
The file is read and scanned in chunks of chunksize bytes.
172172
173173
"""
174+
# TODO: fix RustPython
175+
return (lib, version)
174176
if executable is None:
175177
try:
176178
ver = os.confstr('CS_GNU_LIBC_VERSION')

Lib/test/libregrtest/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,8 @@ def _test_forever(self, tests):
428428
def display_header(self):
429429
# Print basic platform information
430430
print("==", platform.python_implementation(), *sys.version.split())
431-
# TODO: Add platform.platform
432-
# print("==", platform.platform(aliased=True),
433-
# "%s-endian" % sys.byteorder)
431+
print("==", platform.platform(aliased=True),
432+
"%s-endian" % sys.byteorder)
434433
print("== cwd:", os.getcwd())
435434
cpu_count = os.cpu_count()
436435
if cpu_count:

0 commit comments

Comments
 (0)