~testtools-dev/testtools/0.9

« back to all changes in this revision

Viewing changes to testtools/tests/helpers.py

  • Committer: Robert Collins
  • Date: 2009-12-01 10:38:07 UTC
  • mfrom: (33.7.19 py3-support)
  • Revision ID: robertc@robertcollins.net-20091201103807-w4hd1u5ztvu25oyl
Merge Benjamin Peterson's Python 3 support patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
"""Helpers for tests."""
4
4
 
 
5
import sys
 
6
 
5
7
__metaclass__ = type
6
8
__all__ = [
7
9
    'LoggingResult',
10
12
from testtools import TestResult
11
13
 
12
14
 
 
15
try:
 
16
    raise Exception
 
17
except Exception:
 
18
    an_exc_info = sys.exc_info()
 
19
 
13
20
# Deprecated: This classes attributes are somewhat non deterministic which
14
21
# leads to hard to predict tests (because Python upstream are changing things.
15
22
class LoggingResult(TestResult):