Ticket #1003 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

use addCleanup in CommandTestMixin

Reported by: dustin Owned by: dustin
Priority: major Milestone: 0.8.2
Version: 0.8.1 Keywords:
Cc:

Description

We're no longer beholden to Twisted-2.5.0, so this code can be improved slightly:

 26     def tearDownCommand(self):
 27         """
 28         Call this from the tearDown method to clean up any leftover workdirs and do
 29         any additional cleanup required.
 30         """
 31         # note: Twisted-2.5.0 does not have addCleanup, or we could use that here..

Change History

comment:1 Changed 3 years ago by dustin

  • Status changed from new to closed
  • Resolution set to fixed

Actually, it wasn't even necessary - I just set it to do the cleanup unconditionally.

Note: See TracTickets for help on using tickets.