dev-python/whoosh: Specify UTF-8 encoding for tests

Gentoo-bug: 608324

Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
David Seifert
2017-02-05 15:01:39 +01:00
parent 4608236cd2
commit 6c74c78e51
3 changed files with 31 additions and 18 deletions

View File

@@ -0,0 +1,13 @@
Python 2 requires specifying the file encoding
See also:
https://www.python.org/dev/peps/pep-0263/
https://bugs.gentoo.org/show_bug.cgi?id=608324
--- a/tests/test_reading.py
+++ b/tests/test_reading.py
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
from __future__ import with_statement
import random, threading, time