Skip to content

Commit ab70761

Browse files
committed
Add even more tests on architecture()
1 parent 35ebd34 commit ab70761

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/test/test_platform.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ def test_invalidate_caches(self):
119119
self.assertIsNone(platform._os_release_cache)
120120

121121
def test_architecture(self):
122-
res = platform.architecture()
122+
bits, linkage = platform.architecture()
123+
self.assertIsInstance(bits, str)
124+
self.assertIsInstance(linkage, str)
123125

124126
if support.MS_WINDOWS:
125127
for sysconfig_platform, expected_bits in (

0 commit comments

Comments
 (0)