diff options
author | Larry Hastings <larry@hastings.org> | 2012-06-24 11:33:36 (GMT) |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2012-06-24 11:33:36 (GMT) |
commit | 605a62ddb1c19978ee194a40a458f072e3242a31 (patch) | |
tree | 68e0896556044c0b2d7e9db9a08fc8e449011f18 /Lib/test/test_sysconfig.py | |
parent | f62445ad30145e5e50c5b0ec9d979099b630039f (diff) | |
download | cpython-605a62ddb1c19978ee194a40a458f072e3242a31.zip cpython-605a62ddb1c19978ee194a40a458f072e3242a31.tar.gz cpython-605a62ddb1c19978ee194a40a458f072e3242a31.tar.bz2 |
Issue #15118: Change return value of os.uname() and os.times() from
plain tuples to immutable iterable objects with named attributes
(structseq objects).
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r-- | Lib/test/test_sysconfig.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index 3cb63ed..aa5d582 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -14,7 +14,6 @@ from sysconfig import (get_paths, get_platform, get_config_vars, _get_default_scheme, _expand_vars, get_scheme_names, get_config_var, _main) - class TestSysConfig(unittest.TestCase): def setUp(self): @@ -26,7 +25,7 @@ class TestSysConfig(unittest.TestCase): self._uname = os.uname() else: self.uname = None - self._uname = None + self._set_uname(('',)*5) os.uname = self._get_uname # saving the environment self.name = os.name @@ -70,7 +69,7 @@ class TestSysConfig(unittest.TestCase): super(TestSysConfig, self).tearDown() def _set_uname(self, uname): - self._uname = uname + self._uname = os.uname_result(uname) def _get_uname(self): return self._uname |