lib-python/3/test/test_runpy.py::unmodified
== PyPy 3.11.15 (f0ba547da91c, Jul 01 2026, 03:54:35) [PyPy 7.3.24-alpha0 with MSC v.1941 64 bit (AMD64)]
== Windows-10-10.0.19045-SP0 little-endian
== Python build: release with_assert
== cwd: D:\SystemTemp\pytest\test_python_worker_2016æ
== CPU count: 2
== encodings: locale=ascii FS=utf-8
== resources (3): curses,gui,network
Using random seed: 2125331673
0:00:00 Run 1 test sequentially
0:00:00 [1/1] test_runpy
test_run_code (test.test_runpy.ExecutionLayerTestCase.test_run_code) ... ok
test_run_module_code (test.test_runpy.ExecutionLayerTestCase.test_run_module_code) ... ok
test_explicit_relative_import (test.test_runpy.RunModuleTestCase.test_explicit_relative_import) ... ok
test_invalid_names (test.test_runpy.RunModuleTestCase.test_invalid_names) ... ok
test_library_module (test.test_runpy.RunModuleTestCase.test_library_module) ... ok
test_main_relative_import (test.test_runpy.RunModuleTestCase.test_main_relative_import) ... ok
test_package_imported_no_warning (test.test_runpy.RunModuleTestCase.test_package_imported_no_warning) ... ok
test_pkgutil_walk_packages (test.test_runpy.RunModuleTestCase.test_pkgutil_walk_packages) ... ok
test_run_module (test.test_runpy.RunModuleTestCase.test_run_module) ... ok
test_run_module_alter_sys (test.test_runpy.RunModuleTestCase.test_run_module_alter_sys) ... ok
test_run_module_in_namespace_package (test.test_runpy.RunModuleTestCase.test_run_module_in_namespace_package) ... ok
test_run_name (test.test_runpy.RunModuleTestCase.test_run_name) ... ok
test_run_namespace_package (test.test_runpy.RunModuleTestCase.test_run_namespace_package) ... ok
test_run_namespace_package_in_namespace_package (test.test_runpy.RunModuleTestCase.test_run_namespace_package_in_namespace_package) ... ok
test_run_package (test.test_runpy.RunModuleTestCase.test_run_package) ... ok
test_run_package_alter_sys (test.test_runpy.RunModuleTestCase.test_run_package_alter_sys) ... ok
test_run_package_in_namespace_package (test.test_runpy.RunModuleTestCase.test_run_package_in_namespace_package) ... ok
test_run_package_init_exceptions (test.test_runpy.RunModuleTestCase.test_run_package_init_exceptions) ... ok
test_submodule_imported_warning (test.test_runpy.RunModuleTestCase.test_submodule_imported_warning) ... ok
test_basic_script (test.test_runpy.RunPathTestCase.test_basic_script) ... ok
test_basic_script_no_suffix (test.test_runpy.RunPathTestCase.test_basic_script_no_suffix) ... ok
test_basic_script_with_path_object (test.test_runpy.RunPathTestCase.test_basic_script_with_path_object) ... ok
test_directory (test.test_runpy.RunPathTestCase.test_directory) ... ok
test_directory_compiled (test.test_runpy.RunPathTestCase.test_directory_compiled) ... ok
test_directory_error (test.test_runpy.RunPathTestCase.test_directory_error) ... ok
test_encoding (test.test_runpy.RunPathTestCase.test_encoding) ... ERROR
test_main_recursion_error (test.test_runpy.RunPathTestCase.test_main_recursion_error) ... skipped "resource 'cpu' is not enabled"
test_script_compiled (test.test_runpy.RunPathTestCase.test_script_compiled) ... ok
test_zipfile (test.test_runpy.RunPathTestCase.test_zipfile) ... ok
test_zipfile_compiled (test.test_runpy.RunPathTestCase.test_zipfile_compiled) ... ok
test_zipfile_error (test.test_runpy.RunPathTestCase.test_zipfile_error) ... ok
test_pymain_run_command (test.test_runpy.TestExit.test_pymain_run_command) ... FAIL
test_pymain_run_command_run_module (test.test_runpy.TestExit.test_pymain_run_command_run_module) ... FAIL
test_pymain_run_file (test.test_runpy.TestExit.test_pymain_run_file) ... FAIL
test_pymain_run_file_runpy_run_module (test.test_runpy.TestExit.test_pymain_run_file_runpy_run_module) ... FAIL
test_pymain_run_file_runpy_run_module_as_main (test.test_runpy.TestExit.test_pymain_run_file_runpy_run_module_as_main) ... FAIL
test_pymain_run_module (test.test_runpy.TestExit.test_pymain_run_module) ... FAIL
test_pymain_run_stdin (test.test_runpy.TestExit.test_pymain_run_stdin) ... FAIL
======================================================================
ERROR: test_encoding (test.test_runpy.RunPathTestCase.test_encoding)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 754, in test_encoding
result = run_path(filename)
^^^^^^^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\runpy.py", line 293, in run_path
code, fname = _get_code_from_file(run_name, path_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\runpy.py", line 262, in _get_code_from_file
code = compile(f.read(), fname, 'exec')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\SystemTemp\pytest\tmpsqqvy8jg\script.py", line 3
s = "non-ASCII: h�"
^^^^^^^^^^^^^^^
SyntaxError: Non-UTF-8 code starting with '\xe9'
======================================================================
FAIL: test_pymain_run_command (test.test_runpy.TestExit.test_pymain_run_command)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 828, in test_pymain_run_command
self.assertSigInt(["-c", "import ham"], cwd=self.ham.parent)
^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 790, in assertSigInt
self.assertEqual(proc.returncode, self.EXPECTED_CODE)
^^^^^^^^^^^
AssertionError: 3 != 3221225786
======================================================================
FAIL: test_pymain_run_command_run_module (test.test_runpy.TestExit.test_pymain_run_command_run_module)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 822, in test_pymain_run_command_run_module
self.assertSigInt(
^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 790, in assertSigInt
self.assertEqual(proc.returncode, self.EXPECTED_CODE)
^^^^^^^^^^^
AssertionError: 3 != 3221225786
======================================================================
FAIL: test_pymain_run_file (test.test_runpy.TestExit.test_pymain_run_file)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 793, in test_pymain_run_file
self.assertSigInt([self.ham])
^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 790, in assertSigInt
self.assertEqual(proc.returncode, self.EXPECTED_CODE)
^^^^^^^^^^^
AssertionError: 3 != 3221225786
======================================================================
FAIL: test_pymain_run_file_runpy_run_module (test.test_runpy.TestExit.test_pymain_run_file_runpy_run_module)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 806, in test_pymain_run_file_runpy_run_module
self.assertSigInt([run_module], cwd=tmp)
^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 790, in assertSigInt
self.assertEqual(proc.returncode, self.EXPECTED_CODE)
^^^^^^^^^^^
AssertionError: 3 != 3221225786
======================================================================
FAIL: test_pymain_run_file_runpy_run_module_as_main (test.test_runpy.TestExit.test_pymain_run_file_runpy_run_module_as_main)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 819, in test_pymain_run_file_runpy_run_module_as_main
self.assertSigInt([run_module_as_main], cwd=tmp)
^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 790, in assertSigInt
self.assertEqual(proc.returncode, self.EXPECTED_CODE)
^^^^^^^^^^^
AssertionError: 3 != 3221225786
======================================================================
FAIL: test_pymain_run_module (test.test_runpy.TestExit.test_pymain_run_module)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 835, in test_pymain_run_module
self.assertSigInt(["-m", ham.stem], cwd=ham.parent)
^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 790, in assertSigInt
self.assertEqual(proc.returncode, self.EXPECTED_CODE)
^^^^^^^^^^^
AssertionError: 3 != 3221225786
======================================================================
FAIL: test_pymain_run_stdin (test.test_runpy.TestExit.test_pymain_run_stdin)
----------------------------------------------------------------------
Traceback (most recent call last):
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 831, in test_pymain_run_stdin
self.assertSigInt([], input="import ham", cwd=self.ham.parent)
^^^^^^^^^^^^
File "d:\pypy_stuff\buildbot64\slave\pypy-c-jit-win-x86-64\build\lib-python\3\test\test_runpy.py", line 790, in assertSigInt
self.assertEqual(proc.returncode, self.EXPECTED_CODE)
^^^^^^^^^^^
AssertionError: 3 != 3221225786
----------------------------------------------------------------------
Ran 38 tests in 1.486s
FAILED (failures=7, errors=1, skipped=1)
test_runpy failed (1 error, 7 failures)
== Tests result: FAILURE ==
1 test failed:
test_runpy
Total duration: 1.8 sec
Total tests: run=38 failures=7 skipped=1
Total test files: run=1/1 failed=1
Result: FAILURE
test test_runpy failed
builder: pypy-c-jit-win-x86-64 build #2423+
test: lib-python/3/test/test_runpy.py::unmodified