Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
py26 doesn't have a consistent exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
bukzor committed Dec 30, 2014
1 parent aceadd9 commit b9ff362
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -18,6 +18,6 @@
hooks:
- id: system
name: PyLint
entry: python -m pylint
entry: python -m pylint.__main__
language: system
files: \.py$
4 changes: 3 additions & 1 deletion tests/functional/simple_test.py
Expand Up @@ -347,7 +347,9 @@ def test_args_backward(tmpdir):
with pytest.raises(CalledProcessError) as excinfo:
venv_update('requirements.txt', 'myvenv')

assert excinfo.value.returncode == 1
# py26 doesn't have a consistent exit code:
# http://bugs.python.org/issue15033
assert excinfo.value.returncode != 0
_, err = excinfo.value.result
lasterr = strip_coverage_warnings(err).rsplit('\n', 2)[-2]
errname = 'NotADirectoryError' if PY33 else 'OSError'
Expand Down

0 comments on commit b9ff362

Please sign in to comment.