def test_read_file_like_object(self):

        filelike = BytesIO()
        with open(self.data('test0.fits'), 'rb') as f:
            filelike.write(f.read())
        filelike.seek(0)
        with ignore_warnings():
            assert len(fits.open(filelike)) == 5
Initialize a queue object with a given maximum size.
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/tests/test_core.py/TestFileFunctions.test_read_file_like_object--crossover with--dataset/ETHPy150Open ralfonso/theory/theory/model/mpdqueue.py/Queue.__init__