-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: make things work with coverage.py 5.x
It has changed its internal format to sqlite and still doesn't provide a way to merge runs from different OSes, see nedbat/coveragepy#903
- Loading branch information
Showing
5 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import sys | ||
import sqlite3 | ||
|
||
|
||
def main(argv): | ||
paths = argv[1:] | ||
|
||
for path in paths: | ||
# https://github.com/nedbat/coveragepy/issues/903 | ||
conn = sqlite3.connect(path) | ||
conn.execute("UPDATE file set path = REPLACE(path, '\\', '/')") | ||
conn.commit() | ||
conn.close() | ||
|
||
|
||
if __name__ == "__main__": | ||
sys.exit(main(sys.argv)) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ exclude=subprojects | |
|
||
[coverage:run] | ||
branch=True | ||
relative_files=True | ||
include= | ||
gi/* | ||
tests/* | ||
|