mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Improve Python tree-shaking
This commit is contained in:
parent
5bb2275788
commit
4f41f2184d
169 changed files with 4182 additions and 2411 deletions
8
third_party/python/Lib/pickletools.py
vendored
8
third_party/python/Lib/pickletools.py
vendored
|
@ -2786,8 +2786,12 @@ __test__ = {'disassembler_test': _dis_test,
|
|||
}
|
||||
|
||||
def _test():
|
||||
import doctest
|
||||
return doctest.testmod()
|
||||
import sys
|
||||
try:
|
||||
import doctest
|
||||
except ImportError:
|
||||
sys.exit(1)
|
||||
print(doctest.testmod())
|
||||
|
||||
if __name__ == "__main__":
|
||||
import argparse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue