diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2016-06-27 21:27:12 +0100 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-06-27 21:27:39 +0100 |
| commit | 280e784e266a284e9aa6e4b1959d9554841ebcff (patch) | |
| tree | bf9827895208f8a67971f88bd3494805ead7ba99 | |
| parent | 1e9ca50790b22b8e505edf38fd5f2e4bc31f22d5 (diff) | |
| download | astroid-git-280e784e266a284e9aa6e4b1959d9554841ebcff.tar.gz | |
Restore the posargs argument
| -rw-r--r-- | tox.ini | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -26,8 +26,9 @@ setenv = COVERAGE_FILE = {toxinidir}/.coverage.{envname} PYTHONWARNINGS = i +# {posargs} allows passing command line arguments to unittest commands = - python -Wi {envsitepackagesdir}/coverage run -m unittest discover -s {envsitepackagesdir}/astroid/tests -p "unittest*.py" + python -Wi {envsitepackagesdir}/coverage run -m unittest discover {posargs} -s {envsitepackagesdir}/astroid/tests -p "unittest*.py" ; Transform absolute path to relative path ; for compatibility with coveralls.io and fix 'source not available' error. ; If you can find a cleaner way is welcome |
