~barry/mailman/lp1423756

« back to all changes in this revision

Viewing changes to src/mailman/testing/nose.py

  • Committer: Barry Warsaw
  • Date: 2015-01-05 01:20:33 UTC
  • mfrom: (7264.4.66 py3)
  • Revision ID: barry@list.org-20150105012033-zdrw9c2odhpf22fz
Merge the Python 3 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""nose2 test infrastructure."""
19
19
 
20
 
from __future__ import absolute_import, print_function, unicode_literals
21
 
 
22
 
__metaclass__ = type
23
20
__all__ = [
24
21
    'NosePlugin',
25
22
    ]
35
32
from mailman.testing.layers import ConfigLayer, MockAndMonkeyLayer, SMTPLayer
36
33
from nose2.events import Plugin
37
34
 
 
35
 
38
36
DOT = '.'
39
37
FLAGS = doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE | doctest.REPORT_NDIFF
40
38
TOPDIR = os.path.dirname(mailman.__file__)
116
114
        # Suppress the extra "Doctest: ..." line.
117
115
        test.shortDescription = lambda: None
118
116
        event.extraTests.append(test)
 
117
 
 
118
    ## def startTest(self, event):
 
119
    ##     import sys; print('vvvvv', event.test, file=sys.stderr)
 
120
 
 
121
    ## def stopTest(self, event):
 
122
    ##     import sys; print('^^^^^', event.test, file=sys.stderr)