mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Move importlib functions to within C (#408)
This offers a 10% speedup in Python startup time. It also makes debugging using cosmopolitan tooling easier.
This commit is contained in:
parent
10b97ca630
commit
7e9fb0a9f1
6 changed files with 690 additions and 124 deletions
2
third_party/python/Lib/test/test_sys.py
vendored
2
third_party/python/Lib/test/test_sys.py
vendored
|
@ -667,7 +667,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
stdout = p.communicate()[0]
|
||||
executable = stdout.strip().decode("ASCII")
|
||||
p.wait()
|
||||
self.assertIn(executable, ["b''", repr(sys.executable.replace("//", "/").encode("ascii", "backslashreplace"))])
|
||||
self.assertIn(executable, ['', repr(sys.executable.replace("//", "/").encode("ascii", "backslashreplace"))])
|
||||
|
||||
def check_fsencoding(self, fs_encoding, expected=None):
|
||||
self.assertIsNotNone(fs_encoding)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue