Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 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:

Description

Trying to run manage.py 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 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by SmileyChris

comment:1 Changed 3 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 3 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.