~testing-cabal/ubuntu/hardy/python-testtools/hardy-tweaks

« back to all changes in this revision

Viewing changes to testtools/deferredruntest.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-02 21:01:20 UTC
  • mfrom: (16.99.16 upstream)
  • Revision ID: jelmer@samba.org-20110502210120-f7ryvcd6pcjpoijg
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
import sys
17
17
 
18
 
from testtools import try_imports
 
18
from testtools.compat import StringIO
19
19
from testtools.content import (
20
20
    Content,
21
21
    text_content,
34
34
from twisted.python import log
35
35
from twisted.trial.unittest import _LogObserver
36
36
 
37
 
StringIO = try_imports(['StringIO.StringIO', 'io.StringIO'])
38
 
 
39
37
 
40
38
class _DeferredRunTest(RunTest):
41
39
    """Base for tests that return Deferreds."""