diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-26 13:52:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-26 13:52:12 (GMT) |
commit | 289411d8eff6a646a7746cfb87ddf95ff83cfbdc (patch) | |
tree | e5c6cd38154d39f804b7510d8e79d5de5083a3de /Lib/test/test_platform.py | |
parent | 610b7798af40e1457b884c91997219cf75637a04 (diff) | |
download | cpython-289411d8eff6a646a7746cfb87ddf95ff83cfbdc.zip cpython-289411d8eff6a646a7746cfb87ddf95ff83cfbdc.tar.gz cpython-289411d8eff6a646a7746cfb87ddf95ff83cfbdc.tar.bz2 |
gh-97966: Restore prior expectation that uname_result._fields and ._asdict would include the processor. (gh-98343)
(cherry picked from commit dc063a25d29840d863b15c86fdab15b4a1894c73)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Diffstat (limited to 'Lib/test/test_platform.py')
-rw-r--r-- | Lib/test/test_platform.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index 1a68877..2d41166 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -268,6 +268,14 @@ class PlatformTest(unittest.TestCase): self.assertEqual(res[:], expected) self.assertEqual(res[:5], expected[:5]) + def test_uname_fields(self): + self.assertIn('processor', platform.uname()._fields) + + def test_uname_asdict(self): + res = platform.uname()._asdict() + self.assertEqual(len(res), 6) + self.assertIn('processor', res) + @unittest.skipIf(sys.platform in ['win32', 'OpenVMS'], "uname -p not used") def test_uname_processor(self): """ |