Commit Graph

8 Commits (382f2c6a28d36687efe02b9ee4ff23a70a7863c2)

Author SHA1 Message Date
Mathieu Couette 382f2c6a28 tests: Add unittest aliases to Python 2.7 5 years ago
Mathieu Couette c58e1360ea tests: Fix indentation issues 5 years ago
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