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

Bug 729620

Summary: dev-python/traceback2-1.4.0 fails test: No module named 'contextlib2'
Product: Gentoo Linux Reporter: Alexey <alexey+gentoo>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: alexey+gentoo, mgorny
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description Alexey 2020-06-25 13:28:42 UTC
Created attachment 646342 [details]
emerge --info

======================================================================                                                                                                                                                                                                            
ERROR: traceback2.tests.test_traceback (unittest.loader._FailedTest)                                                                                                                                                                                                              
----------------------------------------------------------------------                                                                                                                                                                                                            
ImportError: Failed to import test module: traceback2.tests.test_traceback                                                                                                                                                                                                        
Traceback (most recent call last):                                                                                                                                                                                                                                                
  File "/usr/lib/python3.7/unittest/loader.py", line 436, in _find_test_path                                                                                                                                                                                                      
    module = self._get_module_from_name(name)                                                                                                                                                                                                                                     
  File "/usr/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name                                                                                                                                                                                                
    __import__(name)                                                                                                                                                                                                                                                              
  File "/mnt/portagetmp/portage/dev-python/traceback2-1.4.0/work/traceback2-1.4.0/traceback2/tests/test_traceback.py", line 11, in <module>                                                                                                                                       
    import contextlib2 as contextlib                                                                                                                                                                                                                                              
ModuleNotFoundError: No module named 'contextlib2'
Comment 1 Alexey 2020-06-25 13:29:39 UTC
Created attachment 646344 [details]
build.log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-06-26 09:40:58 UTC
Good catch, thanks!
Comment 3 Larry the Git Cow gentoo-dev 2020-06-26 09:41:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db59003360669e456f0753fedb918b017e03314a

commit db59003360669e456f0753fedb918b017e03314a
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-06-26 09:40:47 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-06-26 09:40:47 +0000

    dev-python/traceback2: Add dep on contextlib2
    
    Closes: https://bugs.gentoo.org/729620
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/traceback2/traceback2-1.4.0.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)