code: def test_uname_win32_ARCHITEW6432(self):
      # Issue 7860: make sure we get architecture from the correct variable
      # on 64 bit Windows: if PROCESSOR_ARCHITEW6432 exists we should be
      # using it, per
      # http://blogs.msdn.com/david.wang/archive/2006/03/26/HOWTO-Detect-Process-Bitness.aspx
  
      # We also need to suppress WMI checks, as those are reliable and
      # overrule the environment variables
      def raises_oserror(*a):
          raise OSError()
  
      with support.swap_attr(platform, "_wmi_query", raises_oserror):
          with os_helper.EnvironmentVarGuard() as environ:
              try:
                  if "PROCESSOR_ARCHITEW6432" in environ:
                      del environ["PROCESSOR_ARCHITEW6432"]
                  environ["PROCESSOR_ARCHITECTURE"] = "foo"
                  platform._uname_cache = None
                  (
                      system,
                      node,
                      release,
                      version,
                      machine,
                      processor,
                  ) = platform.uname()
                  self.assertEqual(machine, "foo")
                  environ["PROCESSOR_ARCHITEW6432"] = "bar"
                  platform._uname_cache = None
                  (
                      system,
                      node,
                      release,
                      version,
                      machine,
                      processor,
                  ) = platform.uname()
                  self.assertEqual(machine, "bar")
              finally:
                  platform._uname_cache = None
  
imports: import os
  import copy
  import pickle
  import platform
  import subprocess
  import sys
  import unittest
  from unittest import mock
  from test import support
  from test.support import os_helper
label_desc: Use image node_id 25 for calling the PlatformTest obj's underlying member method code with example usage: obj.test_uname_win32_ARCHITEW6432() without return types