backport of 64096
diff --git a/Lib/test/test_platform.py b/Lib/test/test_platform.py
index a19556d..265c527 100644
--- a/Lib/test/test_platform.py
+++ b/Lib/test/test_platform.py
@@ -72,7 +72,7 @@
         else:
             have_toolbox_glue = True
 
-        if have_toolbox_glue and os.uname()[0] == 'Darwin':
+        if have_toolbox_glue and platform.uname()[0] == 'Darwin':
             # We're on a MacOSX system, check that
             # the right version information is returned
             fd = os.popen('sw_vers', 'r')