'file.readinto must handle signals and not lose data.'

def test_readinto(self):

    self._test_reading(data_to_write='hello,    world!', read_and_verify_code='data    =    bytearray(50)    ;num_read    =    infile.readinto(data)    ;expected_data    =    "hello,    world!\\n";assert    data[:num_read]    ==    expected_data,    ("read    %r    expected    %r"    %    (data,    expected_data))', method_name='readinto')
