Improve Python tree-shaking

This commit is contained in:
Justine Tunney 2021-09-06 19:24:10 -07:00
parent 5bb2275788
commit 4f41f2184d
169 changed files with 4182 additions and 2411 deletions

View file

@ -2090,8 +2090,13 @@ def restore(delta, which):
yield line[2:]
def _test():
import doctest, difflib
return doctest.testmod(difflib)
import sys
try:
import doctest, difflib
except ImportError:
sys.exit(1)
print(doctest.testmod(difflib))
if __name__ == "__main__":
_test()