Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback on python 2.6 starting with 4.3.2 #554

Closed
nedbat opened this issue Jan 17, 2017 · 3 comments
Closed

Traceback on python 2.6 starting with 4.3.2 #554

nedbat opened this issue Jan 17, 2017 · 3 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented Jan 17, 2017

Originally reported by Matt Clay (Bitbucket: mattclay, GitHub: mattclay)


The 4.3.2 release generates a traceback on python 2.6, where previous versions did not:

Traceback (most recent call last):
  File "/root/src/github.com/ansible/ansible/test/runner/.tox/py26/bin/coverage-2.6", line 7, in <module>
    from coverage.cmdline import main
  File "/root/src/github.com/ansible/ansible/test/runner/.tox/py26/lib/python2.6/site-packages/coverage/__init__.py", line 13, in <module>
    from coverage.control import Coverage, process_startup
  File "/root/src/github.com/ansible/ansible/test/runner/.tox/py26/lib/python2.6/site-packages/coverage/control.py", line 14, in <module>
    from coverage import env, files
  File "/root/src/github.com/ansible/ansible/test/runner/.tox/py26/lib/python2.6/site-packages/coverage/files.py", line 16, in <module>
    from coverage.misc import contract, CoverageException, join_regex, isolate_module
  File "/root/src/github.com/ansible/ansible/test/runner/.tox/py26/lib/python2.6/site-packages/coverage/misc.py", line 287, in <module>
    class StopEverything(unittest.SkipTest):
AttributeError: 'module' object has no attribute 'SkipTest'

It appears the commit responsible is this one:

https://bitbucket.org/ned/coveragepy/commits/10050dac0e9e45f9a882cfd16d4173fdea040da0

This error was triggered by running tests on the ansible repository from GitHub:

https://github.com/ansible/ansible/

Running tests with:

test/runner/ansible-test sanity --test ansible-doc --python 2.6 --coverage --tox

Changing the constraints.txt for the tests to limit the version to 4.3.1 works around the issue:

ansible/ansible#20329


@nedbat
Copy link
Owner Author

nedbat commented Jan 17, 2017

Oops, sorry! Version 4.3.3, coming up....

@nedbat
Copy link
Owner Author

nedbat commented Jan 17, 2017

Fixed in d61d044caff7 (bb)

@nedbat nedbat closed this as completed Jan 17, 2017
@nedbat
Copy link
Owner Author

nedbat commented Jan 17, 2017

Issue #555 was marked as a duplicate of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant