Skip to content

Commit

Permalink
tests: pdb: flush also on MacOS, but read() before
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed May 29, 2019
1 parent 9db425e commit 3be76c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions testing/test_pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from __future__ import print_function

import os
import platform
import sys

import six
Expand Down Expand Up @@ -153,10 +152,11 @@ def test_func():

@staticmethod
def flush(child):
if platform.system() == "Darwin":
return
if child.isalive():
# Read if the test has not (e.g. test_pdb_unittest_skip).
child.read()
child.wait()
assert not child.isalive()

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

0 comments on commit 3be76c4

Please sign in to comment.