Test suite fails in subunit-0.0.8.tar.gz

Bug #996275 reported by Arfrever Frehtes Taifersar Arahesis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subunit
Fix Released
Critical
Robert Collins

Bug Description

Test suite passes in Bazaar working copy, but fails in directory created by unpacking subunit-0.0.8.tar.gz.

$ PYTHONPATH="python" python2.7 -m testtools.run subunit.test_suite
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib64/python2.7/site-packages/testtools/run.py", line 332, in <module>
    main(sys.argv, sys.stdout)
  File "/usr/lib64/python2.7/site-packages/testtools/run.py", line 329, in main
    program = TestProgram(argv=argv, testRunner=runner, stdout=stdout)
  File "/usr/lib64/python2.7/site-packages/testtools/run.py", line 155, in __init__
    self.parseArgs(argv)
  File "/usr/lib64/python2.7/site-packages/testtools/run.py", line 232, in parseArgs
    self.createTests()
  File "/usr/lib64/python2.7/site-packages/testtools/run.py", line 241, in createTests
    self.module)
  File "/usr/lib64/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib64/python2.7/unittest/loader.py", line 113, in loadTestsFromName
    test = obj()
  File "/tmp/subunit-0.0.8/python/subunit/__init__.py", line 158, in test_suite
    import subunit.tests
  File "/tmp/subunit-0.0.8/python/subunit/tests/__init__.py", line 17, in <module>
    from subunit.tests import (
ImportError: cannot import name test_run

The following 2 files should be included in tarball to fully fix test suite:
python/subunit/tests/test_run.py
python/subunit/filters.py

I suggest to also include:
filters/subunit2csv
filters/subunit-notify
setup.py

Related branches

Revision history for this message
Robert Collins (lifeless) wrote :

Thanks for reporting this.

Changed in subunit:
milestone: none → next
assignee: nobody → Robert Collins (lifeless)
importance: Undecided → Critical
status: New → Fix Committed
Changed in subunit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.