Testdoc generates docs for TestCases that are imported

Bug #120141 reported by Andrew Bennetts
2
Affects Status Importance Assigned to Milestone
testdoc
Invalid
Undecided
Unassigned

Bug Description

For example,

    from bzrlib.tests import TestCase

    class TestMyCode(TestCase):
        ...

will cause TestCase to be documented (in addition to TestMyCode), even though it's not defined in this file.

A workaround is to just import the module:

    from bzrlib import tests

    class TestMyCode(tests.TestCase):
        ...

Revision history for this message
Jonathan Lange (jml) wrote :
Changed in testdoc:
status: New → Invalid
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.