diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-19 01:07:14 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-19 01:07:14 +0200 |
| commit | 49977bc0bf84f28abdb8d827cc8e8082207bf883 (patch) | |
| tree | e341cba04a487198bee3e66567699d5815cccb13 | |
| parent | 757afb2909c2b921f1055bd214ef0c6a665cc89d (diff) | |
testsuite: Use platform.uname() instead of os.uname()
Portable to non-Unix platforms.
| -rw-r--r-- | testsuite.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite.py b/testsuite.py index f713da0..f1bbe9e 100644 --- a/testsuite.py +++ b/testsuite.py @@ -42,6 +42,7 @@ from __future__ import print_function import kconfiglib import os +import platform import re import subprocess import sys @@ -1479,7 +1480,7 @@ def run_selftests(): print("Testing UNAME_RELEASE value...") - verify_value("UNAME_RELEASE", os.uname()[2]) + verify_value("UNAME_RELEASE", platform.uname()[2]) # Expansion of environment variables in Config.__init__'s base_dir # parameter. Just make sure we don't crash when Kbase_dir 'source's a file |
