Skip to content

Commit

Permalink
added flush to tee test
Browse files Browse the repository at this point in the history
hopefully this will fix the random failures on windows
  • Loading branch information
Qwlouse committed Jan 5, 2017
1 parent 14b6134 commit 118c99c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/usr/bin/env python
# coding=utf-8
from __future__ import division, print_function, unicode_literals
import ctypes
import os
import sys

import pytest
import tempfile
Expand Down Expand Up @@ -165,6 +163,7 @@ def test_tee_output(capsys):
print("captured stdout")
print("captured stderr")
libc.puts(b'stdout from C')
libc.fflush(None)
os.system('echo and this is from echo')

print('after (stdout)')
Expand Down

0 comments on commit 118c99c

Please sign in to comment.