summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_platform.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py
index 0e6cb6db1e..63215a0635 100644
--- a/Lib/test/test_platform.py
+++ b/Lib/test/test_platform.py
@@ -169,10 +169,12 @@ class PlatformTest(unittest.TestCase):
of 'uname -p'. See Issue 35967 for rationale.
"""
with contextlib.suppress(subprocess.CalledProcessError):
- self.assertEqual(
- platform.uname().processor,
- subprocess.check_output(['uname', '-p'], text=True).strip(),
- )
+ expect = subprocess.check_output(['uname', '-p'], text=True).strip()
+
+ if expect == 'unknown':
+ expect = ''
+
+ self.assertEqual(platform.uname().processor, expect)
@unittest.skipUnless(sys.platform.startswith('win'), "windows only test")
def test_uname_win32_ARCHITEW6432(self):