Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659102 - dev-python/python-magic-0.4.15: test failure: unittest.case.SkipTest: No module named MacOS
Summary: dev-python/python-magic-0.4.15: test failure: unittest.case.SkipTest: No modu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords: TESTFAILURE
: 639812 654088 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-25 14:08 UTC by Thomas Deutschmann (RETIRED)
Modified: 2018-07-29 08:47 UTC (History)
4 users (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 Thomas Deutschmann (RETIRED) gentoo-dev 2018-06-25 14:08:35 UTC
Traceback (most recent call last):
  File "setup.py", line 32, in <module>
    'Programming Language :: Python :: Implementation :: CPython',
  File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 226, in run
    self.run_tests()
  File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 249, in run_tests
    **exit_kwarg
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 103, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/usr/lib/python2.7/site-packages/setuptools/command/test.py", line 52, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/usr/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/usr/lib/python2.7/test/test_macos.py", line 6, in <module>
    MacOS = test_support.import_module('MacOS')
  File "/usr/lib/python2.7/test/support/__init__.py", line 89, in import_module
    raise unittest.SkipTest(str(msg))
unittest.case.SkipTest: No module named MacOS
 * ERROR: dev-python/python-magic-0.4.15::gentoo failed (test phase):
 *   (no error message)
Comment 1 Pacho Ramos gentoo-dev 2018-06-28 18:42:28 UTC
master 8095eb9fe6e8] dev-python/python-magic: MacOS module needed for tests, bug #659102
 1 file changed, 3 insertions(+)

restricted for now
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-07-18 14:18:54 UTC
It would be nice if people actually spent 3 minutes looking at it rather than replacing one dumb copy-paste that doesn't even run the right test suite with an ugly mistaken RESTRICT=test.
Comment 3 Larry the Git Cow gentoo-dev 2018-07-18 14:37:49 UTC
The bug has been closed via the following commit(s):

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

commit 877c739695b3b8fdb1579a6cf3b52df18089aba9
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-07-18 14:17:53 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-07-18 14:37:40 +0000

    dev-python/python-magic: Actually run tests
    
    Actually run the tests from the package rather than CPython's own test
    suite.
    
    Closes: https://bugs.gentoo.org/659102

 dev-python/python-magic/Manifest                   | 2 +-
 dev-python/python-magic/python-magic-0.4.15.ebuild | 7 ++-----
 2 files changed, 3 insertions(+), 6 deletions(-)
Comment 4 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2018-07-29 08:47:17 UTC
*** Bug 639812 has been marked as a duplicate of this bug. ***
Comment 5 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2018-07-29 08:47:47 UTC
*** Bug 654088 has been marked as a duplicate of this bug. ***