diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-05-02 15:26:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-02 15:26:25 (GMT) |
commit | 43566aee12a177a7aef5d732abf768251e6b8a12 (patch) | |
tree | b2a1a46220a31fd4c65068d3192098da4a7c4207 /Lib/test/__main__.py | |
parent | 2c7085fd7b00cba8b5ab258c62453b6a12418b73 (diff) | |
download | cpython-43566aee12a177a7aef5d732abf768251e6b8a12.zip cpython-43566aee12a177a7aef5d732abf768251e6b8a12.tar.gz cpython-43566aee12a177a7aef5d732abf768251e6b8a12.tar.bz2 |
[2.7] bpo-30223: Add Lib/test/__main__.py. (#1373)
To unify running tests in Python 2.7 and Python 3, the test
package can be run as a script. This is equivalent to running the
test.regrtest module as a script.
Diffstat (limited to 'Lib/test/__main__.py')
-rw-r--r-- | Lib/test/__main__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/__main__.py b/Lib/test/__main__.py new file mode 100644 index 0000000..d5fbe15 --- /dev/null +++ b/Lib/test/__main__.py @@ -0,0 +1,3 @@ +from test import regrtest + +regrtest.main_in_temp_cwd() |