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

Bug 348012

Summary: dev-python/astng-0.21.0 USE=test should DEPEND on dev-python/unittest2
Product: Gentoo Linux Reporter: Brant Gurganus <brant>
Component: [OLD] DevelopmentAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Brant Gurganus 2010-12-07 08:08:47 UTC
astng-0.21.0 is missing the unittest2 dependency for src_test

Reproducible: Always

Steps to Reproduce:
1. Without unittest2 available and using Python 2.6, emerge astng-0.21.0.
Actual Results:  
running install_scripts
Traceback (most recent call last):
  File "/usr/bin/pytest-2.6", line 3, in <module>
    from logilab.common.pytest import run
  File "/var/tmp/portage/dev-python/astng-0.21.0/temp/test-2.6/usr/lib64/python2.6/site-packages/logilab/common/pytest.py", line 119, in <module>
    from logilab.common import testlib, STD_BLACKLIST
  File "/var/tmp/portage/dev-python/astng-0.21.0/temp/test-2.6/usr/lib64/python2.6/site-packages/logilab/common/testlib.py", line 63, in <module>
    import unittest2 as unittest
ImportError: No module named unittest2


Expected Results:  
unittest2 is merged as a USE="test" dependency

Even with unittest2 available, one of the tests fails. I have yet to determine that cause, but that is probably best left for a different issue than this one.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-17 22:18:55 UTC
Dependencies in dev-python/logilab-common-0.54.0 are fixed.