~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/tests/upload-karma.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-10 18:15:40 UTC
  • mfrom: (13747.1.5 death-to-odd-files)
  • Revision ID: launchpad@pqm.canonical.com-20110910181540-x64rx09oik7e3v2l
[r=sinzui][bug=421705] Eliminate the cause of random files leaking
        into the tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
Clean up
98
98
========
99
99
 
100
 
Unregister the event listener to make sure we won't interfere in other tests.
 
100
Unregister the event listener to make sure we won't interfere in other tests,
 
101
and delete a stray uploaded file.
101
102
 
 
103
    >>> import os
 
104
    >>> from lp.archiveuploader.tests import datadir
102
105
    >>> karma_helper.unregister_listener()
103
 
 
 
106
    >>> upload_data = datadir('suite/bar_1.0-2')
 
107
    >>> os.remove(os.path.join(upload_data, 'bar_1.0.orig.tar.gz'))