Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 730386 - dev-python/python-bugzilla fails tests
Summary: dev-python/python-bugzilla fails tests
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-01 14:31 UTC by Agostino Sarubbo
Modified: 2020-10-20 08:41 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,23.49 KB, text/plain)
2020-07-01 14:32 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-07-01 14:31:53 UTC
@@This is an auto-filed bug@@
Feel free to change the summary at your convenience.

Issue: dev-python/python-bugzilla fails tests.
Discovered on: amd64

NOTE:
If you need further logs, feel free to ask.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-01 14:32:18 UTC
Created attachment 647308 [details]
build.log

build log and emerge --info
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2020-10-18 23:24:45 UTC
If you don't set a proper locale

>>> Test phase: dev-python/python-bugzilla-2.4.0
 * python3_7: running distutils-r1_run_phase python_test
Error setting locale: unsupported locale setting
============================= test session starts ==============================

then you get encoding errors

>       return codecs.ascii_decode(input, self.errors)[0]
E       UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 367: ordinal not in range(128)


No surprises here. I strongly suggest you set your test environment to some unicode locale like en_US@utf8 ...
Comment 3 Agostino Sarubbo gentoo-dev 2020-10-20 08:41:13 UTC
(In reply to Andreas K. Hüttel from comment #2)
> If you don't set a proper locale
> 
> >>> Test phase: dev-python/python-bugzilla-2.4.0
>  * python3_7: running distutils-r1_run_phase python_test
> Error setting locale: unsupported locale setting
> ============================= test session starts
> ==============================
> 
> then you get encoding errors
> 
> >       return codecs.ascii_decode(input, self.errors)[0]
> E       UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> 367: ordinal not in range(128)
> 
> 
> No surprises here. I strongly suggest you set your test environment to some
> unicode locale like en_US@utf8 ...

Isn't C.UTF8 enough?

$ locale
LANG=C.UTF8
LC_CTYPE="C.UTF8"
LC_NUMERIC="C.UTF8"
LC_TIME="C.UTF8"
LC_COLLATE="C.UTF8"
LC_MONETARY="C.UTF8"
LC_MESSAGES="C.UTF8"
LC_PAPER="C.UTF8"
LC_NAME="C.UTF8"
LC_ADDRESS="C.UTF8"
LC_TELEPHONE="C.UTF8"
LC_MEASUREMENT="C.UTF8"
LC_IDENTIFICATION="C.UTF8"
LC_ALL=