def test_seeking_beyond_beginning_from_current(self): with EncodedFile(io.BytesIO(COMPRESSED)) as fp: self.assertRaises(IOError, fp.seek, -100, io.SEEK_CUR)