Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487294 - dev-python/urllib3-1.7.1 needs dev-python/mock for tests
Summary: dev-python/urllib3-1.7.1 needs dev-python/mock for tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-08 07:44 UTC by Nikoli
Modified: 2013-10-08 11:16 UTC (History)
0 users

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 Nikoli 2013-10-08 07:44:47 UTC
When mock is not installed src_test fails:
test_streaming (test.test_response.TestResponse) ... ok
Failure: ImportError (No module named mock) ... ERROR

======================================================================
ERROR: Failure: ImportError (No module named mock)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/nose/loader.py", line 413, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib64/python2.7/site-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib64/python2.7/site-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/var/tmp/portage/dev-python/urllib3-1.7.1/work/urllib3-1.7.1-python2_7/test/test_util.py", line 4, in <module>
    from mock import patch
ImportError: No module named mock


After installing mock tests work fine.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-08 11:16:14 UTC
+  08 Oct 2013; Michał Górny <mgorny@gentoo.org> urllib3-1.7.1.ebuild:
+  Add missing dev-python/mock dependency. Clean up the ebuild.