Commit de4bcfcb authored by Dom Sekotill's avatar Dom Sekotill
Browse files

renamed coverage to coverage_report (mod & func)

Due to Python 2's stupid implicit relative imports, changed the name
so that it no longer conflicts with the top-level package 'coverage'
which we need to import. (Circular imports - yay).
parent e0d5a408
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ def _import_module(module, exclude):


@contextlib.contextmanager
def coverage(modules, include=None, exclude=None, file=None):
def coverage_report(modules, include=None, exclude=None, file=None):
	"""
	Return a context manager that generates a coverage report for 'modules'

@@ -151,7 +151,7 @@ def test_coverage_command(superclass, packages=None, include=None, exclude=None)
			if not self.with_coverage:
				return super(test, self).run()

			with coverage(packages or self.distribution.packages,
			with coverage_report(packages or self.distribution.packages,
					include=include, exclude=exclude,
					file=self.coverage_report):
				super(test, self).run()