Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608324 - dev-python/whoosh-2.7.4 - src_test(): python2.7: SyntaxError: Non-ASCII character '\xc3' in file /var/tmp/portage/dev-python/whoosh-2.7.4/work/Whoosh-2.7.4/tests/test_reading.py on line 426, but no encoding declared
Summary: dev-python/whoosh-2.7.4 - src_test(): python2.7: SyntaxError: Non-ASCII chara...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 606394
  Show dependency tree
 
Reported: 2017-02-05 13:26 UTC by Jeroen Roovers (RETIRED)
Modified: 2017-06-03 20:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:whoosh-2.7.4:20170205-132020.log (dev-python:whoosh-2.7.4:20170205-132020.log,180.30 KB, text/x-log)
2017-02-05 13:26 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2017-02-05 13:26:36 UTC
Created attachment 462546 [details]
dev-python:whoosh-2.7.4:20170205-132020.log

>>> Test phase: dev-python/whoosh-2.7.4
 * python2_7: running distutils-r1_run_phase python_test
/usr/bin/python2.7 setup.py test
running test
running egg_info
writing src/Whoosh.egg-info/PKG-INFO
writing top-level names to src/Whoosh.egg-info/top_level.txt
writing dependency_links to src/Whoosh.egg-info/dependency_links.txt
reading manifest file 'src/Whoosh.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt' under directory 'tests'
warning: no files found matching '*.txt' under directory 'benchmark'
warning: no files found matching '*.txt' under directory 'files'
warning: no files found matching '*.py' under directory 'files'
warning: no files found matching '*.jpg' under directory 'files'
writing manifest file 'src/Whoosh.egg-info/SOURCES.txt'
running build_ext
========================================== test session starts ==========================================
platform linux2 -- Python 2.7.12, pytest-3.0.3, py-1.4.30, pluggy-0.4.0
rootdir: /var/tmp/portage/dev-python/whoosh-2.7.4/work/Whoosh-2.7.4, inifile: setup.cfg
plugins: xdist-1.15.0, cov-2.3.1, capturelog-0.7, hypothesis-3.6.0, flaky-3.1.1, backports.unittest-mock-1.2.1
collected 561 items / 1 errors

===Flaky Test Report===


===End Flaky Test Report===
================================================ ERRORS =================================================
________________________________ ERROR collecting tests/test_reading.py _________________________________
/usr/lib/python2.7/site-packages/_pytest/python.py:410: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/lib/python2.7/site-packages/py/_path/local.py:650: in pyimport
    __import__(modname)
E     File "/var/tmp/portage/dev-python/whoosh-2.7.4/work/Whoosh-2.7.4/tests/test_reading.py", line 426
E   SyntaxError: Non-ASCII character '\xc3' in file /var/tmp/portage/dev-python/whoosh-2.7.4/work/Whoosh-2.7.4/tests/test_reading.py on line 426, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
======================================== pytest-warning summary =========================================
WC1 None [pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead.
WI1 /usr/lib/python2.7/site-packages/pytest_capturelog.py:171 'pytest_runtest_makereport' hook uses deprecated __multicall__ argument
WC1 None pytest_funcarg__caplog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
WC1 None pytest_funcarg__capturelog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0.  Please remove the prefix and use the @pytest.fixture decorator instead.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================== 4 pytest-warnings, 1 error in 21.89 seconds ==============================
Comment 1 David Seifert gentoo-dev 2017-02-05 14:03:43 UTC
Please try again, the patch solved it for me.

commit 6c74c78e513232f9efec5ab11a7ed4ffde0c3c8d
Author: David Seifert <soap@gentoo.org>
Date:   Sun Feb 5 15:01:39 2017 +0100

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