mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-97966: Restore prior expectation that uname_result._fields and ._asdict would include the processor. (gh-98343)
This commit is contained in:
parent
e35ca417fe
commit
dc063a25d2
3 changed files with 14 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue