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

pypy/interpreter/test/test_app_main.py::TestInteraction::()::test_ignore_python_startup

self = <pypy.interpreter.test.test_app_main.TestInteraction instance at 0x1815ea30>
crashing_demo_script = '/tmp/pytest/usession-py3.12-5272/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-x86-32/build/pypy/interpreter/app_main.py -E {'env': None, 'timeout': 10}
Python 3.12.13 (main, May 13 2026, 03:52:15) [Clang 22.1.5 ] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
  File "/buildbot/slave/own-linux-x86-32/build/pypy/interpreter/app_main.py", line 166, in run_toplevel
builder: own-linux-x86-32 build #9546+
test: pypy/interpreter/test/test_app_main.py::TestInteraction::()::test_ignore_python_startup