From 6a1e03ac6f5fbbfda70200d465cfb2f7cc01d253 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Fri, 17 Feb 2017 23:29:10 +0100 Subject: tests: make full cov plugin cwd-independent --- test/full_coverage_plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/full_coverage_plugin.py') diff --git a/test/full_coverage_plugin.py b/test/full_coverage_plugin.py index e9951af9..d98c29d6 100644 --- a/test/full_coverage_plugin.py +++ b/test/full_coverage_plugin.py @@ -2,6 +2,8 @@ import os import configparser import pytest +here = os.path.abspath(os.path.dirname(__file__)) + enable_coverage = False coverage_values = [] @@ -36,7 +38,7 @@ def pytest_configure(config): ) c = configparser.ConfigParser() - c.read('setup.cfg') + c.read(os.path.join(here, "..", "setup.cfg")) fs = c['tool:full_coverage']['exclude'].split('\n') no_full_cov = config.option.no_full_cov + [f.strip() for f in fs] -- cgit v1.2.3