mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Add sys.meta_path entry for APE zip store (#425)
This commit is contained in:
parent
893cc06fc2
commit
b535937fca
10 changed files with 340 additions and 84 deletions
4
third_party/python/Lib/test/test_cmd_line.py
vendored
4
third_party/python/Lib/test/test_cmd_line.py
vendored
|
@ -483,6 +483,10 @@ class CmdLineTest(unittest.TestCase):
|
|||
with open(fake, "w") as f:
|
||||
f.write("raise RuntimeError('isolated mode test')\n")
|
||||
with open(main, "w") as f:
|
||||
f.write("import sys\n")
|
||||
f.write("import _imp\n")
|
||||
f.write("if sys.meta_path[0] == _imp.CosmoImporter:\n")
|
||||
f.write("\tsys.meta_path.pop(0)\n")
|
||||
f.write("import uuid\n")
|
||||
f.write("print('ok')\n")
|
||||
self.assertRaises(subprocess.CalledProcessError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue