File tree 2 files changed +8
-3
lines changed 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ development at the same time, such as 4.5.x and 5.0.
20
20
Unreleased
21
21
----------
22
22
23
+ - Fix: with ``relative_files = true ``, specifying a specific file to include or
24
+ omit wouldn't work correctly (`issue 1604 `_). This is now fixed, with
25
+ testing help by `Marc Gibbons <pull 1608 _>`_.
26
+
23
27
- Fix: the XML report would have an incorrect ``<source> `` element when using
24
28
relative files and the source option ended with a slash (`issue 1541 `_).
25
29
This is now fixed, thanks to `Kevin Brown-Silva <pull 1608 _>`_.
@@ -35,7 +39,9 @@ Unreleased
35
39
36
40
.. _issue 1523 : https://github.com/nedbat/coveragepy/issues/1523
37
41
.. _issue 1541 : https://github.com/nedbat/coveragepy/issues/1541
42
+ .. _issue 1604 : https://github.com/nedbat/coveragepy/issues/1604
38
43
.. _pull 1608 : https://github.com/nedbat/coveragepy/pull/1608
44
+ .. _pull 1609 : https://github.com/nedbat/coveragepy/pull/1609
39
45
.. _pull 1610 : https://github.com/nedbat/coveragepy/pull/1610
40
46
.. _pull 1613 : https://github.com/nedbat/coveragepy/pull/1613
41
47
Original file line number Diff line number Diff line change @@ -209,9 +209,8 @@ def prep_patterns(patterns: Iterable[str]) -> List[str]:
209
209
"""
210
210
prepped = []
211
211
for p in patterns or []:
212
- if p .startswith (("*" , "?" )):
213
- prepped .append (p )
214
- else :
212
+ prepped .append (p )
213
+ if not p .startswith (("*" , "?" )):
215
214
prepped .append (abs_file (p ))
216
215
return prepped
217
216
You can’t perform that action at this time.
0 commit comments