mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 05:06:36 +02:00
Implement #15
This commit is contained in:
12
PythonHome/Lib/unittest/__main__.py
Normal file
12
PythonHome/Lib/unittest/__main__.py
Normal file
@@ -0,0 +1,12 @@
|
||||
"""Main entry point"""
|
||||
|
||||
import sys
|
||||
if sys.argv[0].endswith("__main__.py"):
|
||||
sys.argv[0] = "python -m unittest"
|
||||
|
||||
__unittest = True
|
||||
|
||||
from .main import main, TestProgram, USAGE_AS_MAIN
|
||||
TestProgram.USAGE = USAGE_AS_MAIN
|
||||
|
||||
main(module=None)
|
||||
Reference in New Issue
Block a user