From de89438a0346e3dca4f7e8afe24efa38810deebe Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 11 Nov 2012 12:22:03 -0500 Subject: Windows now reports file names in their correct case. #89 and #203. --- coverage/fullcoverage/encodings.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'coverage/fullcoverage/encodings.py') diff --git a/coverage/fullcoverage/encodings.py b/coverage/fullcoverage/encodings.py index ad350bc0..6a258d67 100644 --- a/coverage/fullcoverage/encodings.py +++ b/coverage/fullcoverage/encodings.py @@ -37,6 +37,14 @@ class FullCoverageTracer(object): sys.settrace(FullCoverageTracer().fullcoverage_trace) +# In coverage/files.py is actual_filename(), which uses glob.glob. I don't +# understand why, but that use of glob borks everything if fullcoverage is in +# effect. So here we make an ugly hail-mary pass to switch off glob.glob over +# there. This means when using fullcoverage, Windows path names will not be +# their actual case. + +#sys.fullcoverage = True + # Finally, remove our own directory from sys.path; remove ourselves from # sys.modules; and re-import "encodings", which will be the real package # this time. Note that the delete from sys.modules dictionary has to -- cgit v1.2.1