Ticket #1003 (closed enhancement: fixed)
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
Note: See
TracTickets for help on using
tickets.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
Actually, it wasn't even necessary - I just set it to do the cleanup unconditionally.