test_stringio:test_universal
@given(values=st.lists(
> st.tuples(
st.text(st.characters(blacklist_characters='\r\n'), min_size=1),
st.sampled_from(LINE_ENDINGS))))
def test_universal(values):
..\build\extra_tests\test_stringio.py:14:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pypy-venv\site-packages\hypothesis\core.py:624: in execute_once
result = self.test_runner(data, run)
pypy-venv\site-packages\hypothesis\executors.py:56: in default_new_style_executor
return function(data)
pypy-venv\site-packages\hypothesis\core.py:620: in run
return test(*args, **kwargs)
..\build\extra_tests\test_stringio.py:14: in test_universal
st.tuples(
pypy-venv\site-packages\hypothesis\core.py:544: in test
result = self.test(*args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
values = [('0', '
')]
@given(values=st.lists(
st.tuples(
st.text(st.characters(blacklist_characters='\r\n'), min_size=1),
st.sampled_from(LINE_ENDINGS))))
def test_universal(values):
output_lines = [line + linesep for line, ending in values]
output = u''.join(output_lines)
input = u''.join(line + ending for line, ending in values)
sio = StringIO(input, newline=None)
sio.seek(0)
> assert list(sio) == output_lines
E AssertionError: assert ['0\n'] == ['0
\n']
E At index 0 diff: u'0\n' != u'0\r\n'
E Use -v to get the full diff
..\build\extra_tests\test_stringio.py:24: AssertionError
builder: pypy-c-jit-win-x86-64 build #2505+
test: test_stringio:test_universal