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

pypy/interpreter/test/test_app_main.py::AppTestAppMain::()::test_setup_bootstrap_path

self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x000001f196923248>

    def test_setup_bootstrap_path(self):
            # Check how sys.path is handled depending on if we can find a copy of
            # the stdlib in setup_bootstrap_path.
            import sys, os
            old_sys_path = sys.path[:]
            old_cwd = os.getcwd()
    
            # make sure cwd does not contain a stdlib
            if self.tmp_dir.startswith(self.trunkdir):
                skip('TMPDIR is inside the PyPy source')
            sys.path.append(self.goal_dir)
            tmp_pypy_c = os.path.join(self.tmp_dir, 'pypy-c')
            try:
                os.chdir(self.tmp_dir)
    
                # If we are running PyPy with a libpypy-c, the following
                # lines find the stdlib anyway.  Otherwise, it is not found.
                expected_found = (
                    getattr(sys, 'pypy_translation_info', {})
                    .get('translation.shared'))
    
                import app_main
                app_main.setup_bootstrap_path(tmp_pypy_c)
>               assert sys.executable == ''
E               (application-level) AssertionError: assert 'd:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\virt_test\\Scripts\\python.exe' == ''
E                +  where 'd:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\virt_test\\Scripts\\python.exe' = 'd:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\virt_test\\Scripts\\python.exe'
E                +    where 'd:\\pypy_stuff\\buildbot64\\slave\\own-win-x86-64\\build\\virt_test\\Scripts\\python.exe' = <module 'sys' (built-in)>.executable

[d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\interpreter\test\test_app_main.py:1036]:24: AssertionError
builder: own-win-x86-64 build #2231
test: pypy/interpreter/test/test_app_main/py/AppTestAppMain/()/test_setup_bootstrap_path