class_docstr: Test zipapp module command line API.
class_docstr_tok: ["Test","zipapp","module","command","line","API","."]
code: def test_cmdline_copy_inplace(self):
      # Test copying an archive in place fails.
      original = self.make_archive()
      target = self.tmpdir / "target.pyz"
      args = [str(original), "-o", str(original)]
      with self.assertRaises(SystemExit) as cm:
          zipapp.main(args)
      # Program should exit with a non-zero return code.
      self.assertTrue(cm.exception.code)
  
imports: import io
  import pathlib
  import stat
  import sys
  import tempfile
  import unittest
  import zipapp
  import zipfile
  from test.support import requires_zlib
  from test.support import os_helper
  from unittest.mock import patch
label_desc: Use image node_id 5 for calling the ZipAppCmdlineTest obj's underlying member method code with example usage: obj.test_cmdline_copy_inplace() without return types