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

def test_readlines(self, universal_newlines=False):

    self._test_reading(data_to_write='hello\nworld!', read_and_verify_code='lines    =    infile.readlines()    ;expected_lines    =    ["hello\\n",    "world!\\n"]    ;assert    lines    ==    expected_lines,    ("readlines    returned    wrong    data.\\n"    "got    lines    %r\\nexpected        %r"    %    (lines,    expected_lines))', method_name='readlines', universal_newlines=universal_newlines)
