gh-97966: Restore prior expectation that uname_result._fields and ._asdict would include the processor. (gh-98343)

This commit is contained in:
Jason R. Coombs 2022-11-26 08:28:49 -05:00 committed by GitHub
parent e35ca417fe
commit dc063a25d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 2 deletions

View file

@ -277,6 +277,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")
@support.requires_subprocess()
def test_uname_processor(self):