File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ Unreleased
7
7
8
8
Drop support for Python 3.4 and 3.5.
9
9
10
+ Fixed an issue on Windows where file names were being compared
11
+ case-sensitively, causing templates to be missed (`issue 46 `_).
12
+
13
+ .. _issue 46 : https://github.com/nedbat/django_coverage_plugin/issues/46
10
14
11
15
v1.8.0 --- 2020-01-23
12
16
---------------------
Original file line number Diff line number Diff line change @@ -156,9 +156,9 @@ class DjangoTemplatePlugin(
156
156
def __init__ (self ):
157
157
self .debug_checked = False
158
158
159
- self .django_template_dir = os .path .realpath (
159
+ self .django_template_dir = os .path .normcase ( os . path . realpath (
160
160
os .path .dirname (django .template .__file__ )
161
- )
161
+ ))
162
162
163
163
self .source_map = {}
164
164
@@ -175,7 +175,7 @@ def sys_info(self):
175
175
]
176
176
177
177
def file_tracer (self , filename ):
178
- if filename .startswith (self .django_template_dir ):
178
+ if os . path . normcase ( filename ) .startswith (self .django_template_dir ):
179
179
if not self .debug_checked :
180
180
# Keep calling check_debug until it returns True, which it
181
181
# will only do after settings have been configured
You can’t perform that action at this time.
0 commit comments