mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 22:32:28 +00:00
python-3.6.zip added from Github
README.cosmo contains the necessary links.
This commit is contained in:
parent
75fc601ff5
commit
0c4c56ff39
4219 changed files with 1968626 additions and 0 deletions
19
third_party/python/Tools/test2to3/test/runtests.py
vendored
Normal file
19
third_party/python/Tools/test2to3/test/runtests.py
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Fictitious test runner for the project
|
||||
|
||||
import sys, os
|
||||
|
||||
if sys.version_info > (3,):
|
||||
# copy test suite over to "build/lib" and convert it
|
||||
from distutils.util import copydir_run_2to3
|
||||
testroot = os.path.dirname(__file__)
|
||||
newroot = os.path.join(testroot, '..', 'build/lib/test')
|
||||
copydir_run_2to3(testroot, newroot)
|
||||
# in the following imports, pick up the converted modules
|
||||
sys.path[0] = newroot
|
||||
|
||||
# run the tests here...
|
||||
|
||||
from test_foo import FooTest
|
||||
|
||||
import unittest
|
||||
unittest.main()
|
Loading…
Add table
Add a link
Reference in a new issue