|
This commit adds more changes for proper unicode support:
- Introduce of the utils module with the ustr function that is now used
everywhere where we used str() before. ustr() is smart enough to
convert handle unicode in both python 2 and 3.
- Monkeypatch of unittest2.case.str to deal with lack of unicode support
for assertRaisesRegex in unittest2
- handle_option_error decorator for gitlint.config to deal with
configuration errors for general options more elegantly
- flake8 errors are now printed in red color when running run_tests.sh
- Multiple test cases have been updated so that they also test unicode
compatibility: test_cli.py, test_config.py, test_config_builder.py
Additional tests will be updated to include better unicode coverage in
the follow-up commits.
|