Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#15638 closed (fixed)

unittest.TestCase subclasses can't be run individually

Reported by: SmileyChris 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: UI/UX:


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 SmileyChris 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by SmileyChris

comment:1 Changed 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to fixed
  • Status changed from new to closed
  • Triage Stage changed from Unreviewed to Ready 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 5 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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