changeset 568:1ea65bb705e6 pytest2

coverage part in conftest.py removed and is replaced by pytest-cov plugin.
author pkumar <contactprashantat@gmail.com>
date Wed, 01 Jun 2011 17:06:08 +0530
parents 9feca3bb9395
children 0d19b3f6d2fc
files MoinMoin/conftest.py
diffstat 1 files changed, 0 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/conftest.py	Wed Jun 01 13:01:19 2011 +0200
+++ b/MoinMoin/conftest.py	Wed Jun 01 17:06:08 2011 +0530
@@ -23,7 +23,6 @@
                   '../wiki', # no tests there
                   '../instance', # tw likes to use this for wiki data (non-revisioned)
                  ]
-i = 0
 import atexit
 import os
 import sys
@@ -37,37 +36,6 @@
 
 coverage_modules = set()
 
-try:
-    """
-    This code adds support for coverage.py (see
-    http://nedbatchelder.com/code/modules/coverage.html).
-    It prints a coverage report for the modules specified in all
-    module globals (of the test modules) named "coverage_modules".
-    """
-
-    import coverage
-
-    def report_coverage():
-        coverage.stop()
-        module_list = sorted([sys.modules[mod] for mod in coverage_modules])
-        coverage.report(module_list)
-
-    def callback(option, opt_str, value, parser):
-        atexit.register(report_coverage)
-        coverage.erase()
-        coverage.start()
-
-    def pytest_addoption(parser):
-        group = parser.getgroup('MoinMoin options')
-        group.addoption(
-            '-C', '--coverage',
-            action='callback', callback=callback,
-            help='Output information about code coverage (slow!)')
-
-except ImportError:
-    coverage = None
-
-
 
 def init_test_app(given_config):
     namespace_mapping, router_index_uri = create_simple_mapping("memory:", given_config.content_acl)