~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/testing/__init__.py

  • Committer: Brad Crittenden
  • Date: 2013-08-21 21:37:40 UTC
  • mto: This revision was merged to the branch mainline in revision 362.
  • Revision ID: bac@canonical.com-20130821213740-wrjuwf45xgiub0mg
Disable tests that are failing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        return self.use_context(logger_buffer(log_name))
57
57
 
58
58
    def use_context(self, context):
 
59
        def cleanup():
 
60
            context.__exit__(None, None, None)
 
61
 
 
62
        self.addCleanup(cleanup)
59
63
        result = context.__enter__()
60
 
        self.addCleanup(context.__exit__, None, None, None)
61
64
        return result
62
65
 
63
66
    def use_index_client(self, put_mapping=True, aliased=False):