From 3b8f4a0b86f8796f1e7925b9c6593a9d5198b437 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 6 Oct 2015 07:14:18 -0400 Subject: Protect ourselves from mock'ed os. #416 --- coverage/debug.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coverage/debug.py') diff --git a/coverage/debug.py b/coverage/debug.py index 8d6892bb..4076b9b2 100644 --- a/coverage/debug.py +++ b/coverage/debug.py @@ -7,6 +7,10 @@ import inspect import os import sys +from coverage.misc import isolate_module + +os = isolate_module(os) + # When debugging, it can be helpful to force some options, especially when # debugging the configuration mechanisms you usually use to control debugging! -- cgit v1.2.1