Bug 1208965 - Broken in rawhide?
Summary: Broken in rawhide?
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-coverage
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1208961
TreeView+ depends on / blocked
 
Reported: 2015-04-04 14:27 UTC by Ralph Bean
Modified: 2015-04-21 18:41 UTC (History)
3 users (show)

Fixed In Version: python-coverage-4.0-0.6.a5.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-21 18:41:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch removing usage of 2to3. (1.46 KB, application/mbox)
2015-04-04 15:00 UTC, Ralph Bean
no flags Details

Description Ralph Bean 2015-04-04 14:27:27 UTC
It looks like python3-coverage is broken in rawhide.  I got this traceback when trying to build a new release of python3-nose for rawhide in koji.


======================================================================
ERROR: Failure: NameError (name '__nonzero__' is not defined)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3-python-nose-1.3.6-1.fc23/build/tests/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/builddir/build/BUILD/python3-python-nose-1.3.6-1.fc23/build/tests/nose/loader.py", line 420, in loadTestsFromName
    addr.filename, addr.module)
  File "/builddir/build/BUILD/python3-python-nose-1.3.6-1.fc23/build/tests/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/builddir/build/BUILD/python3-python-nose-1.3.6-1.fc23/build/tests/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib64/python3.4/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib64/python3.4/imp.py", line 171, in load_source
    module = methods.load()
  File "<frozen importlib._bootstrap>", line 1220, in load
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/builddir/build/BUILD/python3-python-nose-1.3.6-1.fc23/build/tests/functional_tests/test_coverage_plugin.py", line 14, in <module>
    import coverage
  File "/usr/lib64/python3.4/site-packages/coverage/__init__.py", line 10, in <module>
    from coverage.control import Coverage, process_startup
  File "/usr/lib64/python3.4/site-packages/coverage/control.py", line 1138, in <module>
    class Plugins(object):
  File "/usr/lib64/python3.4/site-packages/coverage/control.py", line 1176, in Plugins
    __bool__ = __nonzero__
NameError: name '__nonzero__' is not defined

Comment 1 Ralph Bean 2015-04-04 14:32:11 UTC
Filed upstream here:  https://bitbucket.org/ned/coveragepy/issue/364/__nonzero__-traceback-on-python3

Comment 2 Ralph Bean 2015-04-04 14:43:06 UTC
Upon closer inspection, it might just be that we don't need to run 2to3 on the source anymore.

Successful scratch build with that:  http://koji.fedoraproject.org/koji/taskinfo?taskID=9414512

Comment 3 Ralph Bean 2015-04-04 14:59:36 UTC
And... mockchain of python-nose and python-coverage works here after removing 2to3 usage.  Confirmed.

Comment 4 Ralph Bean 2015-04-04 15:00:10 UTC
Created attachment 1010857 [details]
Patch removing usage of 2to3.

This gets the test suite for python-nose working again.

Comment 5 Fedora Update System 2015-04-06 13:30:20 UTC
python-coverage-4.0-0.6.a5.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/python-coverage-4.0-0.6.a5.fc22

Comment 6 Fedora Update System 2015-04-06 17:39:58 UTC
Package python-coverage-4.0-0.6.a5.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-coverage-4.0-0.6.a5.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-5644/python-coverage-4.0-0.6.a5.fc22
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-04-21 18:41:12 UTC
python-coverage-4.0-0.6.a5.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.