Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
792 matches across 18 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | conftest.py | 315 | return Array.from(pyodide._module.pyproxy_alloc_map.entries(), ([x, s]) => [x.type, x.toString(), "Trace |
| HIGH | src/py/_pyodide/_core_docs.py | 1422 | result.push(convert(value.first)) |
| HIGH | src/py/_pyodide/_core_docs.py | 1423 | result.push(convert(value.second)) |
| HIGH | src/py/_pyodide/_core_docs.py | 1567 | >>> js_object.toString() |
| HIGH | src/py/_pyodide/_core_docs.py | 1626 | result.push(convert(value.first)) |
| HIGH | src/py/_pyodide/_core_docs.py | 1627 | result.push(convert(value.second)) |
| HIGH | src/py/pyodide/console.py | 253 | >>> future = console.push("print('Hello, World!')") # doctest: +SKIP |
| HIGH | src/py/pyodide/console.py | 610 | >>> future = console.push("import numpy as np; print(np.array([1, 2, 3]))") # doctest: +SKIP |
| HIGH | src/tests/test_streams.py | 140 | stdout_codes.push(code); |
| HIGH | src/tests/test_streams.py | 211 | null, |
| HIGH | src/tests/test_streams.py | 214 | null, |
| HIGH | src/tests/test_streams.py | 249 | null, |
| HIGH | src/tests/test_streams.py | 282 | null, |
| HIGH | src/tests/test_streams.py | 313 | null, |
| HIGH | src/tests/test_streams.py | 346 | null, |
| HIGH | src/tests/test_streams.py | 433 | this.writtenBuffers.push(buffer.slice()); |
| HIGH | src/tests/test_streams.py | 610 | result.push(new TextDecoder().decode(a)); |
| HIGH | src/tests/test_streams.py | 59 | stdoutStrings.push(s); |
| HIGH | src/tests/test_streams.py | 62 | stderrStrings.push(s); |
| HIGH | src/tests/test_streams.py | 191 | run_js("pyodide.setStdin({stdin: () => undefined})") |
| HIGH | src/tests/test_streams.py | 398 | "read returned undefined; a correct implementation must return a number" |
| HIGH | src/tests/test_streams.py | 421 | expected = "write returned undefined; a correct implementation must return a number" |
| HIGH | src/tests/test_pyproxy.py | 563 | assert(() => d.__getitem__.prototype === undefined); |
| HIGH | src/tests/test_pyproxy.py | 567 | assert(() => d.get.type === undefined); |
| HIGH | src/tests/test_pyproxy.py | 568 | assert(() => d.set.type === undefined); |
| HIGH | src/tests/test_pyproxy.py | 972 | result.push(a.get(1)); |
| HIGH | src/tests/test_pyproxy.py | 973 | result.push(b.get(1)); |
| HIGH | src/tests/test_pyproxy.py | 2289 | func = run_js("(a) => a.push(1, 2, 3)") |
| HIGH | src/tests/test_pyproxy.py | 93 | pyproxy_to_string = run_js("(e) => e.toString()") |
| HIGH | src/tests/test_pyproxy.py | 591 | assert(() => Test.prototype === undefined); |
| HIGH | src/tests/test_pyproxy.py | 713 | assert(() => d.x === undefined); |
| HIGH | src/tests/test_pyproxy.py | 773 | assert(() => t.prototype === undefined); |
| HIGH | src/tests/test_pyproxy.py | 818 | assert(() => l.get.type === undefined); |
| HIGH | src/tests/test_pyproxy.py | 834 | assert(() => l.length === 2 && l.get(1) === 7); |
| HIGH | src/tests/test_pyproxy.py | 1025 | assertThrows(() => t.toString(), "PythonError", ""); |
| HIGH | src/tests/test_pyproxy.py | 1082 | assertThrows(() => t.toString(), "NoGilError", ""); |
| HIGH | src/tests/test_pyproxy.py | 2497 | const res = Object.fromEntries(Reflect.ownKeys(Function.prototype).map(k => [k.toString(), k in o])); |
| HIGH | src/tests/test_pyproxy.py | 2521 | if(x && x.destroy) { |
| HIGH | src/tests/test_pyproxy.py | 125 | result.push(pyodide.globals.has("xxxxx")); |
| HIGH | src/tests/test_pyproxy.py | 126 | result.push(pyodide.globals.has("yyyyy")); |
| HIGH | src/tests/test_pyproxy.py | 127 | result.push(pyodide.globals.has("globals")); |
| HIGH | src/tests/test_pyproxy.py | 128 | result.push(pyodide.globals.has("open")); |
| HIGH | src/tests/test_pyproxy.py | 1353 | undefined, |
| HIGH | src/tests/test_pyproxy.py | 1354 | null, |
| HIGH | src/tests/test_pyproxy.py | 1363 | assert(() => JSON.stringify(fpy.apply(undefined, input)) === JSON.stringify(fjs.apply(undefined, input))); |
| HIGH | src/tests/test_pyproxy.py | 1367 | assertThrows(() => fjs.apply(undefined, error_input), "TypeError", ""); |
| HIGH | src/tests/test_pyproxy.py | 1368 | assertThrows(() => fpy.apply(undefined, error_input), "TypeError", ""); |
| HIGH | src/tests/test_pyproxy.py | 1517 | r.push(g.next()); |
| HIGH | src/tests/test_pyproxy.py | 1518 | r.push(g.next(3)); |
| HIGH | src/tests/test_pyproxy.py | 1519 | r.push(g.next(4)); |
| HIGH | src/tests/test_pyproxy.py | 1520 | r.push(g.next(5)); |
| HIGH | src/tests/test_pyproxy.py | 1566 | r.push(g.next()); |
| HIGH | src/tests/test_pyproxy.py | 1567 | r.push(g.return(5)); |
| HIGH | src/tests/test_pyproxy.py | 1568 | r.push(g.next()); |
| HIGH | src/tests/test_pyproxy.py | 1633 | r.push(g.next()); |
| HIGH | src/tests/test_pyproxy.py | 1634 | r.push(g.throw(new TypeError('hi'))); |
| HIGH | src/tests/test_pyproxy.py | 1635 | r.push(g.next()); |
| HIGH | src/tests/test_pyproxy.py | 1683 | r.push(await g.next()); |
| HIGH | src/tests/test_pyproxy.py | 1684 | r.push(await g.next(3)); |
| HIGH | src/tests/test_pyproxy.py | 1685 | r.push(await g.next(4)); |
| 122 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | conftest.py | 176 | def pytest_collection_modifyitems(config, items): |
| LOW | conftest.py | 281 | def extra_checks_test_wrapper(browser, trace_hiwire_refs, trace_pyproxies, item): |
| LOW | tools/create_lockfile_diff.py | 42 | def get_lockfile_url_from_makefile(branch: str | None = None) -> str: |
| LOW | tools/pytest_wrapper.py | 10 | def remove_num_threads_option(args: list[str]) -> None: |
| LOW | tools/bump_version.py | 90 | def python_version_to_js_version(version: str) -> Constant: |
| LOW | tools/backport.py | 54 | def get_needs_backport_pr_numbers() -> tuple[int, ...]: |
| LOW | tools/backport.py | 65 | def get_needs_backport_prs_strings() -> tuple[str, ...]: |
| LOW | tools/backport.py | 456 | def remove_release_notes_from_unreleased_section( |
| LOW | tools/docker_image_tag.py | 20 | def latest_version_of_firefox() -> str: |
| LOW | tools/deploy_s3.py | 26 | def _validate_remote_prefix_to_remove(remote_prefix: Path) -> None: |
| LOW | tools/tests/test_bump_version.py | 278 | def test_bump_version_dirty_working_tree(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 292 | def test_bump_version_updates_changelog_for_minor_release(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 152 | def test_bump_version_dry_run(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 171 | def test_bump_version_check_no_changes(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 206 | def test_bump_version_check_with_changes(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 216 | def test_bump_version_updates_files(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 248 | def test_bump_version_dev_version(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 261 | def test_bump_version_prerelease(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 311 | def test_bump_version_does_not_update_changelog_for_patch_release(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 325 | def test_bump_version_check_changelog_date(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 342 | def test_bump_version_dry_run_does_not_update_changelog(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 356 | def test_check_changelog_fails_with_unreleased(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 367 | def test_check_changelog_fails_with_missing_version_header(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 396 | def test_check_changelog_fails_with_no_blank_line_after_header(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 424 | def test_check_changelog_fails_with_invalid_date_format(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 453 | def test_update_changelog_fails_with_no_unreleased_section(tmp_path): |
| LOW | tools/tests/test_bump_version.py | 482 | def test_update_changelog_fails_when_version_already_exists(tmp_path): |
| LOW | tools/tests/test_backport.py | 180 | def test_add_backported_entries(): |
| LOW | tools/tests/test_backport.py | 269 | def test_remove_backported_entries(): |
| LOW | docs/conf.py | 197 | def prevent_parens_after_js_class_xrefs(): |
| LOW | docs/conf.py | 209 | def calculate_pyodide_version(app): |
| LOW | docs/conf.py | 337 | def prune_jsproxy_constructor_docs(): |
| LOW | docs/sphinx_pyodide/sphinx_pyodide/packages.py | 16 | def get_packages_summary_directive(app): |
| LOW | packages/test-cpp-exceptions/test_cpp_exceptions.py | 5 | def test_uncaught_cpp_exceptions(selenium): |
| LOW | packages/test-cpp-exceptions/test_cpp_exceptions.py | 35 | def test_cpp_exception_catching(selenium): |
| LOW | packages/test-cpp-exceptions/test_cpp_exceptions.py | 72 | def test_cpp_exception_catching_invoke(selenium): |
| LOW | packages/pytest-asyncio/inner_test_pytest_asyncio.py | 32 | def test_asyncio_marker_compatibility_with_xfail(pytester: Pytester): |
| LOW | packages/pytest-asyncio/inner_test_pytest_asyncio.py | 53 | async def test_asyncio_marker_with_default_param(a_param=None): |
| LOW | packages/numpy/test_numpy.py | 178 | def test_runpythonasync_numpy(selenium): |
| LOW | packages/numpy/test_numpy.py | 259 | def test_get_buffer_roundtrip(selenium, arg): |
| LOW | packages/numpy/test_numpy.py | 302 | def test_get_buffer_big_endian(selenium): |
| LOW | packages/numpy/test_numpy.py | 329 | def test_get_buffer_error_messages(selenium): |
| LOW | packages/micropip/test_micropip.py | 34 | def selenium_standalone_micropip(selenium_standalone_refresh): |
| LOW | packages/micropip/test_micropip.py | 89 | def test_install_file_protocol_node(selenium_standalone_micropip): |
| LOW | packages/micropip/test_micropip.py | 103 | def test_install_different_version(selenium_standalone_micropip): |
| LOW | packages/micropip/test_micropip.py | 147 | def test_list_load_package_from_url(selenium_standalone_micropip, httpserver): |
| LOW | packages/scipy/scipy-conftest.py | 340 | def pytest_collection_modifyitems(config, items): |
| LOW | src/py/ssl.py | 340 | def _load_windows_store_certs(self, storename, purpose): |
| LOW | src/py/ssl.py | 395 | def hostname_checks_common_name(self): |
| LOW | src/py/ssl.py | 403 | def hostname_checks_common_name(self, value): |
| LOW | src/py/ssl.py | 567 | def _create_unverified_context( |
| LOW | src/py/ssl.py | 691 | def verify_client_post_handshake(self): |
| LOW | src/py/ssl.py | 836 | def verify_client_post_handshake(self): |
| LOW | src/py/_pyodide/_importhook.py | 213 | def add_note_to_module_not_found_error(e: ModuleNotFoundError) -> None: |
| LOW | src/py/_pyodide/_importhook.py | 238 | def register_module_not_found_hook(packages: Any) -> None: |
| LOW | src/py/_pyodide/jsbind.py | 158 | def get_attr_sig_method_helper(sig, attr): |
| LOW | src/py/pyodide/console.py | 405 | def persistent_redirect_streams(self) -> None: |
| LOW | src/py/pyodide/console.py | 414 | def persistent_restore_streams(self) -> None: |
| LOW | src/py/pyodide/console.py | 426 | def _stdstreams_redirections_inner(self) -> Generator[None]: |
| LOW | src/py/pyodide/webloop.py | 304 | async def shutdown_default_executor(self, timeout=None): |
| 248 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/py/ssl.py | 17 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/ssl.py | 19 | |
| LOW | src/py/_pyodide/_core_docs.py | 20 | |
| LOW | src/py/_pyodide/__init__.py | 10 | |
| LOW | src/py/_pyodide/__init__.py | 10 | |
| LOW | src/py/pyodide/code.py | 6 | |
| LOW | src/py/pyodide/code.py | 6 | |
| LOW | src/py/pyodide/code.py | 6 | |
| LOW | src/py/pyodide/code.py | 6 | |
| LOW | src/py/pyodide/code.py | 6 | |
| LOW | src/py/pyodide/__init__.py | 17 | |
| LOW | src/py/pyodide/_core.py | 1 | |
| LOW | src/py/pyodide/ffi/__init__.py | 5 | |
| LOW | src/py/pyodide/ffi/__init__.py | 6 | |
| LOW | src/py/pyodide/ffi/__init__.py | 6 | |
| LOW | src/py/pyodide/http/_pyfetch.py | 5 | |
| LOW | src/py/pyodide/http/_pyfetch.py | 22 | |
| LOW | src/py/pyodide/http/__init__.py | 5 | |
| LOW | src/py/pyodide/http/__init__.py | 5 | |
| LOW | src/py/pyodide/http/__init__.py | 5 | |
| LOW | src/py/pyodide/http/__init__.py | 10 | |
| LOW | src/py/pyodide/http/__init__.py | 10 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| LOW | src/tests/test_ssl_stub.py | 23 | |
| 114 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/py/pyodide/_nodesock_transport.py | 54 | # ------------------------------------------------------------------ |
| MEDIUM | src/py/pyodide/_nodesock_transport.py | 56 | # ------------------------------------------------------------------ |
| MEDIUM | src/py/pyodide/_nodesock_transport.py | 84 | # ------------------------------------------------------------------ |
| MEDIUM | src/py/pyodide/_nodesock_transport.py | 86 | # ------------------------------------------------------------------ |
| MEDIUM | src/py/pyodide/_nodesock_transport.py | 158 | # ------------------------------------------------------------------ |
| MEDIUM | src/py/pyodide/_nodesock_transport.py | 160 | # ------------------------------------------------------------------ |
| MEDIUM | src/core/socket_syscalls.c | 15 | // ──────────── |
| MEDIUM | src/tests/test_python_socket.py | 681 | # --------------------------------------------------------------------------- |
| MEDIUM | src/tests/test_python_socket.py | 683 | # --------------------------------------------------------------------------- |
| MEDIUM | src/tests/test_python_socket.py | 940 | # --------------------------------------------------------------------------- |
| MEDIUM | src/tests/test_python_socket.py | 942 | # --------------------------------------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | benchmark/benchmarks/numpy_benchmarks/harris.py | 1 | # from: parakeet testbed |
| LOW | tools/constraints.txt | 1 | # This file is used to track build constraints for packages |
| LOW | src/py/_pyodide/__init__.py | 1 | # _pyodide is imported at the very beginning of the initialization process so it |
| LOW | src/py/_pyodide/__init__.py | 21 | # sys.excepthook **except** traceback.print_exception uses the linecache |
| LOW | src/py/pyodide/__init__.py | 1 | # When the pyodide package is imported, both the js and the pyodide_js modules |
| LOW | src/core/jsproxy.c | 41 | #include "jsproxy.h" |
| LOW | src/core/jsproxy.c | 61 | #define IS_ARRAY (1 << 12) |
| LOW | src/core/jsproxy.c | 201 | sizeof(struct ExceptionFields), |
| LOW | src/core/jsproxy.c | 401 | const result = jsobj[jskey]; |
| LOW | src/core/jsproxy.c | 4321 | bases = PyTuple_Pack(2, &JsProxyType, PyExc_Exception); |
| LOW | src/core/jsproxy_call.c | 1 | #define PY_SSIZE_T_CLEAN |
| LOW | src/core/jsproxy_call.c | 21 | // |
| LOW | src/core/jsproxy_call.c | 41 | int posparams_nmandatory; |
| LOW | src/core/error_handling.c | 1 | // clang-format off |
| LOW | src/core/error_handling.c | 161 | } |
| LOW | src/core/python2js.c | 1 | #define PY_SSIZE_T_CLEAN |
| LOW | src/core/python2js.c | 121 | { |
| LOW | src/core/python2js.c | 681 | |
| LOW | src/core/socket_syscalls.c | 1 | #include "emscripten.h" |
| LOW | src/core/socket_syscalls.c | 181 | // Emscripten's stub setsockopt returns ENOPROTOOPT without doing anything, |
| LOW | src/core/jsbind.c | 1 | #define PY_SSIZE_T_CLEAN |
| LOW | src/core/pyproxy.h | 81 | |
| LOW | src/core/jsmemops.h | 1 | // Macros to access memory from JavaScript |
| LOW | src/core/jsmemops.h | 21 | #define DEREF_F32(addr, offset) HEAPF32[(addr >>> 2) + offset] |
| LOW | src/core/error_handling.h | 1 | #ifndef ERROR_HANDLING_H |
| LOW | src/core/error_handling.h | 81 | } while (0) |
| LOW | src/core/python2js_buffer.c | 1 | #define PY_SSIZE_T_CLEAN |
| LOW | src/core/pyproxy.c | 1 | #define PY_SSIZE_T_CLEAN |
| LOW | src/core/pyproxy.c | 101 | #define HAS_SET (1 << 2) |
| LOW | src/core/pyproxy.c | 221 | |
| LOW | src/core/pyproxy.c | 321 | } |
| LOW | src/core/pyproxy.c | 1101 | return JS_ERROR; |
| LOW | src/core/stack_switching/pystate.c | 1 | #include "Python.h" |
| LOW | src/js/emscripten-settings.ts | 61 | // Emscripten calls locateFile exactly one time with argument |
| LOW | src/js/types.ts | 41 | export const HEAPU32: Uint32Array; |
| LOW | src/tests/python_tests.yaml | 1 | # This list is updated with tools/make_test_list.py script, which needs |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | conftest.py | 242 | except Exception: |
| LOW | conftest.py | 295 | except Exception: |
| MEDIUM | tools/bump_version.py | 190 | print("Error: No '## Unreleased' section found in changelog", file=sys.stderr) |
| MEDIUM | tools/bump_version.py | 193 | print(f"Error: '{version_header}' section found in changelog", file=sys.stderr) |
| LOW | docs/sphinx_pyodide/sphinx_pyodide/util.py | 16 | except Exception: |
| LOW | docs/sphinx_pyodide/sphinx_pyodide/packages.py | 34 | except Exception: |
| LOW | packages/test-buffer/test_buffer.py | 87 | except Exception as e: |
| LOW | packages/_tests/test_packages_common.py | 41 | except Exception as e: |
| MEDIUM | packages/_tests/test_packages_common.py | 38 | def load_lockfile() -> PyodideLockSpec: |
| LOW | src/py/pyodide/_nodesock_transport.py | 38 | except Exception: |
| LOW | src/py/pyodide/_nodesock_transport.py | 42 | except Exception: |
| LOW | src/py/pyodide/_nodesock_transport.py | 149 | except Exception as exc: |
| LOW | src/py/pyodide/_nodesock_transport.py | 183 | except Exception as exc: |
| MEDIUM | src/py/pyodide/_nodesock_transport.py | 115 | def _read_loop(self) -> None: |
| LOW | src/py/pyodide/webloop.py | 117 | except Exception as result_exception: |
| LOW | src/py/pyodide/webloop.py | 154 | except Exception as e: |
| LOW | src/tests/test_console.py | 175 | except Exception: |
| MEDIUM | src/tests/test_typeconversions.py | 27 | def no_hypothesis(x): |
| LOW | src/tests/test_typeconversions.py | 31 | except Exception: |
| LOW | src/tests/test_stdlib_fixes.py | 113 | except Exception: |
| LOW | src/tests/test_stdlib_fixes.py | 122 | except Exception: |
| LOW | src/tests/test_filesystem.py | 75 | except Exception as err: |
| LOW | src/tests/test_jsproxy.py | 3014 | except Exception: |
| LOW | src/tests/test_jsproxy.py | 3048 | except Exception: |
| LOW | src/tests/test_jsproxy.py | 3082 | except Exception: |
| LOW | src/tests/test_stack_switching.py | 264 | except Exception as e: |
| MEDIUM | src/tests/test_stack_switching.py | 261 | def f(): |
| LOW | src/tests/test_webloop.py | 300 | except Exception: |
| LOW | src/tests/test_webloop.py | 322 | except Exception: |
| LOW | src/tests/test_webloop.py | 346 | except Exception: |
| LOW | src/tests/test_webloop.py | 355 | except Exception: |
| LOW | src/tests/test_pyodide.py | 1308 | except Exception as e: |
| LOW | src/tests/test_pyodide.py | 1114 | except Exception as e: |
| LOW | src/tests/test_pyodide.py | 1157 | except Exception as ex: |
| LOW | src/tests/test_pyodide.py | 1215 | except Exception as e: |
| LOW | src/tests/test_python_socket.py | 42 | except Exception as e: |
| LOW | src/tests/test_python_socket.py | 1018 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/tests/test_cmdline_runner.py | 0 | looking in links: .../dist processing ./dist/test_dummy_nonpure-*-cpxxx-cpxxx-pyemscripten_*_wasm32.whl installing colle |
| HIGH | src/tests/test_cmdline_runner.py | 0 | looking in links: .../dist processing ./dist/test_dummy_nonpure-*-cpxxx-cpxxx-pyemscripten_*_wasm32.whl installing colle |
| HIGH | src/tests/test_cmdline_runner.py | 0 | looking in links: .../dist processing ./dist/test_dummy_nonpure-*-cpxxx-cpxxx-pyemscripten_*_wasm32.whl installing colle |
| HIGH | src/tests/test_stack_switching.py | 0 | (async function test() { await sleep(1000); return 7; }) |
| HIGH | src/tests/test_stack_switching.py | 0 | (async function test() { await sleep(1000); return 7; }) |
| HIGH | src/tests/test_stack_switching.py | 0 | (async function test() { await sleep(1000); return 7; }) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/calculate_build_cache_key.py | 3 | # This file is a helper script to calculate the hash for cache key |
| MEDIUM | tools/tests/test_bump_version.py | 282 | # Create an uncommitted change |
| MEDIUM | tools/tests/test_bump_version.py | 371 | # Create a changelog without the version we're checking |
| MEDIUM | tools/tests/test_bump_version.py | 400 | # Create a changelog with version header but no blank line after |
| MEDIUM | tools/tests/test_bump_version.py | 428 | # Create a changelog with invalid date format |
| MEDIUM | tools/tests/test_bump_version.py | 457 | # Create a changelog without ## Unreleased section |
| MEDIUM | tools/tests/test_bump_version.py | 486 | # Create a changelog that already has the version we're trying to bump to |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | conftest.py | 223 | |
| LOW | conftest.py | 281 | |
| LOW | benchmark/benchmark.py | 158 | |
| LOW | benchmark/benchmarks/pystone_benchmarks/pystone.py | 210 | |
| LOW | benchmark/benchmarks/numpy_benchmarks/growcut.py | 23 | |
| LOW | benchmark/benchmarks/numpy_benchmarks/fdtd.py | 9 | |
| LOW | benchmark/benchmarks/numpy_benchmarks/hyantes.py | 9 | |
| LOW | tools/create_lockfile_diff.py | 42 | |
| LOW | tools/backport.py | 330 | |
| LOW | tools/create_xbuildenv.py | 20 | |
| LOW | tools/deploy_s3.py | 62 | |
| LOW | src/py/ssl.py | 472 | |
| LOW | src/py/_pyodide/_base.py | 619 | |
| LOW | src/py/pyodide/_nodesock_transport.py | 115 | |
| LOW | src/py/pyodide/webloop.py | 842 | |
| LOW | src/tests/test_pyproxy.py | 420 | |
| LOW | src/tests/test_package_loading.py | 152 | |
| LOW | src/tests/test_package_loading.py | 177 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | packages/scipy/scipy-pytest.js | 41 | print('Hoping scipy tests are included in the scipy wheel') |
| HIGH | packages/scipy/scipy-pytest.js | 44 | print(pkg_list) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/py/pyodide/__init__.py | 11 | # pytest mocks for js or pyodide_js, so make sure to test "if IN_PYODIDE" before |
| LOW | src/tests/test_ssl_stub.py | 20 | # Guardrail to ensure we don't forget to update this test when Python version changes |
| LOW | src/tests/test_ssl_stub.py | 20 | # Guardrail to ensure we don't forget to update this test when Python version changes |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/check_compressed_size.py | 10 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/core/pyproxy.c | 1541 | * The purpose of this function is to handle memory management when attaching |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/tests/test_database_driver.py | 335 | # No extra server configuration needed — just pass ssl=True on the client. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | conftest.py | 198 | # Check if user explicitly wants to run long_running tests |
| LOW | docs/sphinx_pyodide/sphinx_pyodide/util.py | 50 | # Set wrapper to be our fake function |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/tests/test_bump_version.py | 34 | run(["git", "config", "user.email", "test@test.com"], cwd=tmp_path) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | src/tests/test_pyproxy.py | 294 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/tests/test_pyodide.py | 1950 | def helper(selenium): |