Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#15638 closed (fixed)

unittest.TestCase subclasses can't be run individually

Reported by: Chris Beaven Owned by: nobody
Component: Testing framework Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Trying to run test someapp.MyTest doesn't work any more if it's a subclass of unittest.TestCase, since Django now only considers it a test if it's a subclass of the newly included unittest2 module

Attachments (1)

15368.diff (748 bytes) - added by Chris Beaven 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by Chris Beaven

Attachment: 15368.diff added

comment:1 Changed 8 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed
Triage Stage: UnreviewedReady for checkin

In [15876]:

Fixed #15638 -- Ensure that raw unittest TestCase? instances can be invoked individually by the test runner. Thanks to SmileyChris? for the report and patch.

comment:2 Changed 8 years ago by Jacob

milestone: 1.3

Milestone 1.3 deleted

Note: See TracTickets for help on using tickets.
Back to Top