Add check for EINTR during example testing; this should help avoid sporadic test failures on travis
This commit is contained in:
parent
dd672c41b6
commit
73d857750a
@ -3,6 +3,7 @@ import subprocess
|
||||
import time
|
||||
import os
|
||||
import sys
|
||||
import errno
|
||||
from pyqtgraph.pgcollections import OrderedDict
|
||||
from pyqtgraph.python2_3 import basestring
|
||||
|
||||
@ -143,7 +144,14 @@ except:
|
||||
output = ''
|
||||
fail = False
|
||||
while True:
|
||||
c = process.stdout.read(1).decode()
|
||||
try:
|
||||
c = process.stdout.read(1).decode()
|
||||
except IOError as err:
|
||||
if err.errno == errno.EINTR:
|
||||
# Interrupted system call; just try again.
|
||||
c = ''
|
||||
else:
|
||||
raise
|
||||
output += c
|
||||
#sys.stdout.write(c)
|
||||
#sys.stdout.flush()
|
||||
|
Loading…
Reference in New Issue
Block a user