Skip to content

Commit 85897bd

Browse files
authored
dmypy: fix test failure on py39 (#8793)
There's a fun Python 3.9 only test case failure, where "Daemon started" is output after the error message from parsing options. I ended up needing to bisect to figure out why this consistently breaks on Python 3.9. The issue is caused by python/cpython#17646 (which fixes a surprisingly old BPO). Co-authored-by: hauntsaninja <>
1 parent 1f096e6 commit 85897bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/dmypy/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ def check_output(response: Dict[str, Any], verbose: bool,
390390
except KeyError:
391391
fail("Response: %s" % str(response))
392392
sys.stdout.write(out)
393+
sys.stdout.flush()
393394
sys.stderr.write(err)
394395
if verbose:
395396
show_stats(response)

0 commit comments

Comments
 (0)