Files
openide/python/helpers/pycharm/_jb_tox_runner.py
Ilya.Kazakevich f0ee9eec09 PY-57956: Support tox4.
It has different API, so we now have two separate modules.

Merge-request: IJ-MR-102673
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: 0a2dd2f74376662a34e8b782883f6631dc2a42b1
2023-02-14 17:13:37 +00:00

20 lines
448 B
Python

# coding=utf-8
"""
Runs tox from current directory.
It supports any runner, but well-known runners (py.test and unittest) are switched to our internal runners to provide
better support
There are two different APIs, so it uses either 3 or 4
"""
import tox
if int(tox.version.__version__.split(".")[0]) >= 4:
from _jb_tox_runner_4 import run_tox_4
exit(run_tox_4())
else:
from _jb_tox_runner_3 import run_tox_3
exit(run_tox_3())