class_docstr: Test zipapp module functionality.
class_docstr_tok: ["Test","zipapp","module","functionality","."]
code: def test_read_from_pathobj(self):
      # Test that we can copy an archive using a pathlib.Path object
      # for the source.
      source = self.tmpdir / "source"
      source.mkdir()
      (source / "__main__.py").touch()
      target1 = self.tmpdir / "target1.pyz"
      target2 = self.tmpdir / "target2.pyz"
      zipapp.create_archive(source, target1, interpreter="python")
      zipapp.create_archive(target1, target2, interpreter="python2.7")
      self.assertEqual(zipapp.get_interpreter(target2), "python2.7")
  
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 22 for calling the ZipAppTest obj's underlying member method code with example usage: obj.test_read_from_pathobj() without return types