Always load the README as UTF-8
diff --git a/tests/readme_test.py b/tests/readme_test.py
index 4d4c972..b2d03b3 100644
--- a/tests/readme_test.py
+++ b/tests/readme_test.py
@@ -7,7 +7,9 @@
def test_readme_contains_all_hooks():
- readme_contents = io.open('README.md').read()
- hooks = yaml.load(io.open('hooks.yaml').read())
+ with io.open('README.md', encoding='UTF-8') as f:
+ readme_contents = f.read()
+ with io.open('.pre-commit-hooks.yaml', encoding='UTF-8') as f:
+ hooks = yaml.load(f)
for hook in hooks:
assert '`{}`'.format(hook['id']) in readme_contents