Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy.module._io.test.apptest_io:test_tell_univnewlines

tempfile = 'D:\\SystemTemp\\pytest-of-matti\\pytest-1033\\test_tell_univnewlines0\\tempfile'

    def test_tell_univnewlines(tempfile):
        import io
        import sys
    
        NEWLINE = '\r\n'
    
        with io.open(tempfile, "w") as fp:
            fp.write(DATA_CRLF)
    
        with io.open(tempfile, "r") as fp:
            assert repr(fp.newlines) == repr(None)
            data = fp.readline()
            pos = fp.tell()
        if "__pypy__" in sys.modules:
>           assert repr(fp.newlines)  == repr(NEWLINE)
E           assert "'\\r'" == "'\\r\\n'"
E             - '\r\n'
E             ?    --
E             + '\r'

..\build\pypy\module\_io\test\apptest_io.py:559: AssertionError
builder: pypy-c-jit-win-x86-64 build #2356
test: pypy/module/_io/test/apptest_io:test_tell_univnewlines