Skip to content

Commit

Permalink
Reverting changes to check if the regression is their fault
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzomicodxc committed Jul 30, 2022
1 parent 71054ea commit e6546b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions src/integrationtest/python/issue_862_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ def test_return_two(self):
reactor = self.prepare_reactor()
reactor.build("coverage")

coverage_file_path = "target/reports/issue_862_tests_coverage.xml"
self.assert_file_not_contains(coverage_file_path, 'filename="/')
self.assert_file_not_contains(coverage_file_path, '<package name=".')


if __name__ == "__main__":
unittest.main()
5 changes: 1 addition & 4 deletions src/main/python/pybuilder/plugins/python/coverage_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import ast
import copy
from os.path import dirname, join
from os.path import dirname

import sys

Expand Down Expand Up @@ -106,9 +106,6 @@ def coverage(project, logger, reactor):

source_path = nc(project.expand_path(project.get_property("coverage_source_path")))

# Add a trailing / or \ if not present, for correct `coverage` path interpretation
source_path = join(source_path, "")

module_names = discover_modules(source_path)
module_file_suffixes = discover_module_files(source_path)

Expand Down

0 comments on commit e6546b6

Please sign in to comment.