~rashi007/mailman/docsfix

« back to all changes in this revision

Viewing changes to src/mailman/__init__.py

  • Committer: Barry Warsaw
  • Date: 2014-11-11 22:36:25 UTC
  • mfrom: (7257.1.2 coverage)
  • Revision ID: barry@list.org-20141111223625-uz607z1bhf6sflby
Add support for a 'coverage' environment.  e.g. `tox -e coverage` will run the
test suite and provide a code coverage report.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
try:
32
32
    import pkg_resources
33
33
    pkg_resources.declare_namespace(__name__)
34
 
except ImportError:
 
34
except ImportError:                                 # pragma: no cover
35
35
    import pkgutil
36
36
    __path__ = pkgutil.extend_path(__path__, __name__)
37
37
 
42
42
# imported.
43
43
#
44
44
# Do *not* do this if we're building the documentation.
45
 
if 'build_sphinx' not in sys.argv:
 
45
if 'build_sphinx' not in sys.argv:                  # pragma: no cover
46
46
    if any('nose2' in arg for arg in sys.argv):
47
47
        from mailman.testing.i18n import initialize
48
48
    else: