code: def test_make_archive_cwd(self):
      current_dir = os.getcwd()
  
      def _breaks(*args, **kw):
          raise RuntimeError()
  
      ARCHIVE_FORMATS["xxx"] = (_breaks, [], "xxx file")
      try:
          try:
              make_archive("xxx", "xxx", root_dir=self.mkdtemp())
          except:
              pass
          self.assertEqual(os.getcwd(), current_dir)
      finally:
          del ARCHIVE_FORMATS["xxx"]
  
imports: import unittest
  import os
  import sys
  import tarfile
  from os.path import splitdrive
  import warnings
  from distutils.archive_util import check_archive_formats, make_tarball, make_zipfile, make_archive, ARCHIVE_FORMATS
  from distutils.spawn import find_executable, spawn
  from distutils.tests import support
  from test.test_support import check_warnings, run_unittest
label_desc: Use image node_id 12 for calling the ArchiveUtilTestCase obj's underlying member method code with example usage: obj.test_make_archive_cwd() without return types