Skip to content

Commit

Permalink
Correct merge of test_platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Mar 27, 2024
1 parent 44bbf79 commit 7419002
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/test/test_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ def test_uname(self):
if sys.platform == "android":
self.assertEqual(res.system, "Android")
self.assertEqual(res.release, platform.android_ver().release)
elif sys.platform == "ios":
self.assertIn(res.system, {"iOS", "iPadOS"})
self.assertEqual(res.release, platform.ios_ver().release)
else:
self.assertEqual(res.system, uname.sysname)
self.assertEqual(res.release, uname.release)

if sys.platform == "ios":
self.assertIn(res.system, {"iOS", "iPadOS"})
self.assertEqual(res.release, platform.ios_ver().release)

@unittest.skipUnless(sys.platform.startswith('win'), "windows only test")
def test_uname_win32_without_wmi(self):
Expand Down

0 comments on commit 7419002

Please sign in to comment.