test command broken

Bug #726539 reported by Jelmer Vernooij
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
testtools
Fix Released
High
Christian Kampka

Bug Description

gwenhwyvar:~/src/testtools/fix-testcommand% ./setup.py test
Traceback (most recent call last):
  File "./setup.py", line 65, in <module>
    cmdclass={'test': testtools.TestCommand})
AttributeError: 'module' object has no attribute 'TestCommand'

Related branches

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Simply importing from testtools.distutilscmd doesn't seem to do the right thing either, as it requires a test suite to be passed in rather than defined in setup.py.

Revision history for this message
Christian Kampka (kampka) wrote :

First, I fixed the import of the TestCommand class but I am not sure if Jonathan did not remove that part deliberately so that fix might be wrong. Jonathan, if you do not wish to export the TestCommand directly over the testtools package, I would appreciate a quick comment, just to be sure :)

Second, I added a sample 'setup.cfg' file to demonstrate how to use the TestCommand class with distutils and testtools.
`python setup.py test` should run the testtools test suite now.

Jonathan Lange (jml)
Changed in testtools:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Christian Kampka (kampka)
milestone: none → next
Jonathan Lange (jml)
Changed in testtools:
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.