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:
Gautham 2022-05-27 11:50:59 +05:30 committed by GitHub
parent 10b97ca630
commit 7e9fb0a9f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 690 additions and 124 deletions

View file

@ -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)