pypy/interpreter/test/test_app_main.py::TestInteraction::()::test_ignore_python_startup
self = <pypy.interpreter.test.test_app_main.TestInteraction instance at 0x00000000189822a0>
crashing_demo_script = '/tmp/pytest/usession-py3.12-5472/demo_test_app_main_10.py'
def test_ignore_python_startup(self, crashing_demo_script):
old = os.environ.get('PYTHONSTARTUP', '')
try:
os.environ['PYTHONSTARTUP'] = crashing_demo_script
child = self.spawn(['-E'])
child.expect(re.escape(banner))
index = child.expect(['Traceback', '>>> '])
> assert index == 1 # no traceback
E assert 0 == 1
interpreter/test/test_app_main.py:545: AssertionError
---------- Captured stdout call ----------
SPAWN: /usr/local/bin/python3.12 /buildbot/slave/own-linux-aarch64/build/pypy/interpreter/app_main.py -E {'env': None, 'timeout': 10}
Python 3.12.13 (main, May 13 2026, 03:52:05) [GCC 14.2.1 20250110 (Red Hat 14.2.1-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
builder: own-linux-aarch64 build #2901+
test: pypy/interpreter/test/test_app_main.py::TestInteraction::()::test_ignore_python_startup