SyntaxError: Non-ASCII character '\xc3'. Please add file encoding line to test_reading.py.

Issue #443 new
Vlad Safronov
created an issue

Building on RHEL completes with minor error:

____________________________________________ ERROR collecting tests/test_reading.py ____________________________________________
/usr/lib/python2.7/site-packages/_pytest/python.py:488: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=True)
/usr/lib/python2.7/site-packages/py/_path/local.py:648: in pyimport
    __import__(modname)
E     File "/home/rb/rpmbuild/BUILD/Whoosh-2.7.4/tests/test_reading.py", line 426
E   SyntaxError: Non-ASCII character '\xc3' in file /home/rb/rpmbuild/BUILD/Whoosh-2.7.4/tests/test_reading.py on line 426, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
============================================= 561 passed, 1 error in 24.30 seconds =============================================

```

Please add encoding line to Whoosh-2.7.4/tests/test_reading.py as PEP-0263 suggests.

Comments (0)

  1. Log in to comment