Skip to content

Commit

Permalink
Fix gunittest for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Jun 5, 2020
1 parent c65727b commit 32dd642
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/python/gunittest/reporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ def anonymize(self, filenames):
# to remove user home directory and GISDBASE
# we suppuse that we run in standard grass session
# TODO: provide more effective implementation
path_end = r'[\\/]?'
for path in self._paths_to_remove:
for filename in filenames:
path_end = r'[\\/]?'
replace_in_file(filename, path + path_end, '')
replace_in_file(filename,
path.replace('\\', r'\\') + path_end, '')


def get_source_url(path, revision, line=None):
Expand Down

0 comments on commit 32dd642

Please sign in to comment.