Traceback on python 2.6 starting with 4.3.2

Issue #554 resolved
Matt Clay created an issue

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/", line 7, in <module>
    from coverage.cmdline import main
  File "/root/src/", line 13, in <module>
    from coverage.control import Coverage, process_startup
  File "/root/src/", line 14, in <module>
    from coverage import env, files
  File "/root/src/", line 16, in <module>
    from coverage.misc import contract, CoverageException, join_regex, isolate_module
  File "/root/src/", line 287, in <module>
    class StopEverything(unittest.SkipTest):
AttributeError: 'module' object has no attribute 'SkipTest'

It appears the commit responsible is this one:

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

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:

Comments (3)

  1. Log in to comment