We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c31e9ad commit 1060813Copy full SHA for 1060813
coverage/data.py
@@ -132,7 +132,13 @@ def combine_parallel_data(
132
data.update(new_data, aliases=aliases)
133
files_combined += 1
134
if message:
135
- message(f"Combined data file {os.path.relpath(f)}")
+ try:
136
+ message(f"Combined data file {os.path.relpath(f)}")
137
+ except ValueError:
138
+ # ValueError can be raised under Windows when os.getcwd() returns a
139
+ # folder from a different drive than the drive of f, in which case
140
+ # we print the original value of f instead of its relative path
141
+ message(f"Combined data file {f!r}")
142
if not keep:
143
if data._debug.should('dataio'):
144
data._debug.write(f"Deleting combined data file {f!r}")
0 commit comments