Fix examples/hdf5.py to work properly with --test

This commit is contained in:
Luke Campagnola 2013-12-19 12:44:03 -05:00
parent 03c01d3b32
commit 63f3b0ab6e

View File

@ -25,8 +25,7 @@ if len(sys.argv) > 1:
else:
fileName = 'test.hdf5'
if not os.path.isfile(fileName):
print("No suitable HDF5 file found. Use createFile() to generate an example file.")
os._exit(1)
raise Exception("No suitable HDF5 file found. Use createFile() to generate an example file.")
plt = pg.plot()
plt.setWindowTitle('pyqtgraph example: HDF5 big data')