test_startup:test_ctrl_c_causes_atexit
def test_ctrl_c_causes_atexit():
process = subprocess.Popen(
[sys.executable,
'-c',
"import atexit, time, sys; atexit.register(lambda : print('called atexit')); print('sleeping'); sys.stdout.flush(); time.sleep(100)"],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
line = process.stdout.readline()
> assert line == b'sleeping\n'
E AssertionError: assert b'sleeping\r\n' == b'sleeping\n'
E At index 8 diff: b'\r' != b'\n'
E Use -v to get the full diff
..\build\extra_tests\test_startup.py:42: AssertionError
builder: pypy-c-jit-win-x86-64 build #2426+
test: test_startup:test_ctrl_c_causes_atexit