Skip to content

Commit

Permalink
ignore branch coverage with flush
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Feb 27, 2019
1 parent 722d41a commit 9957183
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions testing/test_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,9 @@ def test_func():

@staticmethod
def flush(child):
# TODO: should be covered now
if platform.system() == "Darwin":
return
if child.isalive():
child.wait()
if platform.system() != "Darwin": # pragma: no branch
if child.isalive():
child.wait()

def test_pdb_unittest_postmortem(self, testdir):
p1 = testdir.makepyfile(
Expand Down

0 comments on commit 9957183

Please sign in to comment.