diff --git a/Lib/test/test_pydoc/test_pydoc.py b/Lib/test/test_pydoc/test_pydoc.py index d1d6f4987def0c..1a8b2b7e8593f3 100644 --- a/Lib/test/test_pydoc/test_pydoc.py +++ b/Lib/test/test_pydoc/test_pydoc.py @@ -1303,14 +1303,30 @@ def test_apropos_with_unreadable_dir(self): @os_helper.skip_unless_working_chmod def test_apropos_empty_doc(self): pkgdir = os.path.join(TESTFN, 'walkpkg') + import posix + posix._emscripten_debugger() os.mkdir(pkgdir) + posix._emscripten_debugger() + print() + print(f"{os.getcwd()=}") + print(f"{TESTFN=}") + print(f"{pkgdir=}") + print() + print(f"{os.getcwd().encode()=}") + print(f"{TESTFN.encode()=}") + print(f"{pkgdir.encode()=}") self.addCleanup(rmtree, pkgdir) init_path = os.path.join(pkgdir, '__init__.py') with open(init_path, 'w') as fobj: fobj.write("foo = 1") current_mode = stat.S_IMODE(os.stat(pkgdir).st_mode) + print() + print(f"{current_mode=:#o}") try: + posix._emscripten_debugger() os.chmod(pkgdir, current_mode & ~stat.S_IEXEC) + new_mode = stat.S_IMODE(os.stat(pkgdir).st_mode) + print(f"{new_mode=:#o}") with self.restrict_walk_packages(path=[TESTFN]), captured_stdout() as stdout: pydoc.apropos('') self.assertIn('walkpkg', stdout.getvalue()) diff --git a/Tools/wasm/emscripten/__main__.py b/Tools/wasm/emscripten/__main__.py index c0d58aeaadd2cf..91f577ad4e62fa 100644 --- a/Tools/wasm/emscripten/__main__.py +++ b/Tools/wasm/emscripten/__main__.py @@ -262,6 +262,7 @@ def configure_emscripten_python(context, working_dir): }} REALPATH=abs_path fi + NODEFLAGS=--inspect-brk # We compute our own path, not following symlinks and pass it in so that # node_entry.mjs can set sys.executable correctly. @@ -285,7 +286,7 @@ def make_emscripten_python(context, working_dir): ) exec_script = working_dir / "python.sh" - subprocess.check_call([exec_script, "--version"]) + # subprocess.check_call([exec_script, "--version"]) def build_all(context):