From 2f9e2bec60fa1a8f66b34c6c37fdfcf6010fe354 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 24 Jul 2016 09:39:47 -0400 Subject: Set the rcfile for multiprocessing subprocesses --- coverage/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'coverage/config.py') diff --git a/coverage/config.py b/coverage/config.py index 23ec232..d6f5af0 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -9,7 +9,7 @@ import re import sys from coverage.backward import configparser, iitems, string_class -from coverage.misc import CoverageException, isolate_module +from coverage.misc import contract, CoverageException, isolate_module os = isolate_module(os) @@ -201,6 +201,7 @@ class CoverageConfig(object): v = [v] setattr(self, k, v) + @contract(filename=str) def from_file(self, filename, section_prefix=""): """Read configuration from a .rc file. -- cgit v1.2.1