Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450654 - dev-python/python-novaclient: uses unittest2 in py2.7 & py3.2+
Summary: dev-python/python-novaclient: uses unittest2 in py2.7 & py3.2+
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL: https://bugs.launchpad.net/python-nov...
Whiteboard:
Keywords:
Depends on:
Blocks: 450616
  Show dependency tree
 
Reported: 2013-01-06 19:46 UTC by Michał Górny
Modified: 2013-03-11 01:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-06 19:46:46 UTC
The package unconditionally imports unittest2. I think that shouldn't be necessary in py2.7/3.2+.
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-01-14 02:46:26 UTC
If that is the case, then why does the virtual/python-unittest2 ebuild support those python versions?

PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-01-14 02:50:25 UTC
Think I fixed it by changing the virtual/python-unittest2 to virtual/python-unittest2[${PYTHON_USEDEP}]

Let me know if it's still broken :D
Comment 3 Mike Gilbert gentoo-dev 2013-01-14 03:01:35 UTC
This bug is not about the dependencies, but about that actual installed code.
Comment 4 Mike Gilbert gentoo-dev 2013-01-14 03:18:55 UTC
Sorry, I mean the test suite, not the installed code. See tests/utils.py.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-01-14 09:17:53 UTC
(In reply to comment #1)
> If that is the case, then why does the virtual/python-unittest2 ebuild
> support those python versions?
> 
> PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} pypy{1_9,2_0} )

Because we migrated all the packages prematurely to it and don't want random failures ;).
Comment 6 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-03-11 01:16:25 UTC
I'm going to close this, as it is using [${PYTHON_USEDEP}] and will be fixed when the virtual is fixed.