Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 450666

Summary: dev-python/hgtools: fails tests with python3.2+
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Matthew Thode ( prometheanfire ) <prometheanfire>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, python, tdalman
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bitbucket.org/jaraco/hgtools/issue/11/hgtoolsversioning-doctest-fails-with
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 292402    
Attachments: Build log with python3.2
files/hgtools-doctest.patch

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-06 22:47:32 UTC
Created attachment 334686 [details]
Build log with python3.2

After fixing the ebuild to run the test suite, I get one small failure with python3.2+:

=========================================== FAILURES ============================================
___________________________________________ [doctest] ___________________________________________
063             """
064             >>> str(SummableVersion('1.9.3').as_number())
Expected:
    '1.93'
Got:
    '1.9300000000000002'

/tmp/portage/dev-python/hgtools-2.0.2/work/hgtools-2.0.2-python3_2/lib/hgtools/versioning.py:64: DocTestFailure
============================= 1 failed, 27 passed in 86.77 seconds ==============================
Comment 1 Tolga Dalman 2013-05-03 10:32:08 UTC
An upgrade to the latest version of hgtools should fix the problem. The issue you referenced is resolved now.
Comment 2 Wang Jiajun 2013-05-04 09:31:29 UTC
Created attachment 347330 [details, diff]
files/hgtools-doctest.patch

Here is the patch to fix the test failure, if you want to keep this version in the portage tree.

Now the issue does not exist in newer versions.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-05-06 15:32:13 UTC
fixex in current version 2.0.2