Hi Robert,

On Mon, Feb 22, 2016 at 03:25:48AM -0500, Robert Kuska wrote:
> > But when the tests are executed via rpmbuild, python2 test run reports a
> > pass, while python3 run fails[2]. This happens both on my local machine and
> > in copr.
> 
> can you try to run your tests with following variables defined 
> LANG=en_GB.utf8 
> LC_ALL=en_GB.utf8?
> 
> Python3 uses locale.getpreferredencoding when no encoding is specified when 
> opening
> a file which may be an ascii on some systems. 

Thanks for the hint. You are right, I can reproduce the issue by running:

LC_ALL=C python3 setup.py test

So yeah, the problem is in my unit test code which reads utf8 files.

-- 
Martin Bukatovic
_______________________________________________
python-devel mailing list
python-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/python-devel@lists.fedoraproject.org

Reply via email to