diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py index d35058db84759e..10ed18bf0e0c30 100644 --- a/Lib/test/test_platform.py +++ b/Lib/test/test_platform.py @@ -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):