Ticket #1950 (closed enhancement: fixed )

Opened 3 years ago

Last modified 2 years ago

PyUnitTestCase.id is redundant and should be removed

Reported by: glyph Assigned to: jml
Type: enhancement Priority: normal
Milestone: Component: trial
Keywords: Cc:
Branch: Author:
Launchpad Bug:

Description

The reason it has not been is that it causes doctest tests to start failing, but perhaps doctest should have individual support.

Attachments

Change History

  2007-02-04 01:55:25+00:00 changed by jml

  • status changed from new to assigned

  2007-11-14 18:14:08+00:00 changed by jml

  • branch deleted

The branch for #2898 should make this easier to change.

  2007-11-14 18:16:38+00:00 changed by jml

  • branch set to branches/remove-id-1950

  2007-11-14 18:16:45+00:00 changed by jml

  • branch changed from branches/remove-id-1950 to branches/remove-id-1950-2

  2007-11-14 21:55:44+00:00 changed by jml

(In [21788]) Hey look! I can delete this and the tests still pass.

Turns out that our re-implementation of id() for pyunit TestCase? is totally unnecessary.

Refs #1950.

  2007-11-14 22:01:39+00:00 changed by jml

  • branch deleted

Now being fixed in the branch for #2898.

  2007-11-16 19:41:05+00:00 changed by jml

  • status changed from assigned to closed
  • resolution set to fixed

(In [21827]) Define ITestCase to be the interface that test frameworks expect of a test.

  • Author: jml
  • Reviewers: therve, exarkun
  • Fixes #2898

ITestCase is re-purposed to define what you can expect from a test object. We use this interface to adapt pyunit tests to things usable in Trial.

In the process we also clarify what's needed for compatibility with doctest and pyunit.

This branch also fixes #1950.

Refs #2739.

Note: See TracTickets for help on using tickets.