Skip to content

replace confusing comment with assertion - #1028

Merged
nedbat merged 1 commit into
coveragepy:masterfrom
graingert:replace-confusing-comment-with-assertion
Sep 12, 2020
Merged

nedbat merged 1 commit into
coveragepy:masterfrom
graingert:replace-confusing-comment-with-assertion

Conversation

@graingert

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread tests/test_api.py
Comment on lines +907 to +913
def test_source_package_dotted_sub(self):
lines = self.coverage_usepkgs(source=["pkg1.sub"])
self.filenames_not_in(lines, "p2a p2b othera otherb osa osb")
# Because source= was specified, we do search for unexecuted files.
self.assertEqual(lines['runmod3'], 0)

def test_source_package_dotted(self):
def test_source_package_dotted_p1b(self):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nedbat I'm not really clear what the difference between these two tests is

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkg1.sub is a directory, pkg1.p1b is a file.

@nedbat
nedbat merged commit 154f528 into coveragepy:master Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants