Commit Graph

6 Commits (3e421ec60ed1137bba3afac589cbcff3298d1c84)

Author SHA1 Message Date
Mathieu Couette 3e421ec60e tests: Replace deprecated aliases
https://docs.python.org/3/library/unittest.html#deprecated-aliases
5 years ago
Hugo c281d48507 Drop support for EOL Python 2.6 6 years ago
Adrien Vergé 501def327d tests: Use `sys.executable` instead of hard-coded 'python'
To test yamllint as a module, tests run commands like
`python -m yamllint`. But some environments (like continuous integration
of Debian or CentOS) don't always include the `python` executable (they
use `python3` instead).

Let's dynamically detect the Python executable path.
8 years ago
Adrien Vergé d422274563 style: Fix E722 errors reported by pycodestyle
Since a few days ago pycodestyle (formerly called pep8) has a new check:
E722 warning for bare except clauses.

Let's fix our code.
8 years ago
Adrien Vergé 1a961bd4b0 chore(tests): Also run tests on Python 2.6 8 years ago
Adrien Vergé d6a81f1b23 Add tests for `python -m yamllint` 8 years ago