obspy.core.util.testing.ImageComparison.read1

ImageComparison.read1()

Read and return up to n bytes, with at most one read() call to the underlying raw stream. A short result does not imply that EOF is imminent.

Returns an empty bytes object on EOF.