@skipIf(IS_WINDOWS and 3 < sys.version_info[0],
            "StringIO has no fileno on Python 2 and Windows")
    def test_data_split_into_lines(self):
        stream = self.get_stream(time_format='%Y/%m/%d %H.%M.%S')
        data = {'data': '\n'.join(['foo', 'bar', 'baz']),
                'pid': 333}

        stream(data)
        output = stream._file.getvalue()
        stream._file.close()

        # NOTE: We expect 4 b/c the last line needs to add a newline
        #       in order to prepare for the next chunk
        self.assertEqual(len(output.split('\n')), 4)
dataset/ETHPy150Open circus-tent/circus/circus/tests/test_stream.py/TestFileStream.test_data_split_into_lines/swapped operands of `<`