SILENT KILLERPanel

Current Path: > > opt > hc_python > lib64 > python3.12 > site-packages > greenlet > tests


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/hc_python/lib64/python3.12/site-packages/greenlet/tests

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 9361 bytes May 23 2025 10:34:46.
_test_extension.c File 5773 bytes May 23 2025 10:34:46.
_test_extension.cpython-312-x86_64-linux-gnu.so File 17256 bytes May 23 2025 10:34:46.
_test_extension_cpp.cpp File 6565 bytes May 23 2025 10:34:46.
_test_extension_cpp.cpython-312-x86_64-linux-gnu.so File 58384 bytes May 23 2025 10:34:46.
fail_clearing_run_switches.py File 1263 bytes May 23 2025 10:34:46.
fail_cpp_exception.py File 985 bytes May 23 2025 10:34:46.
fail_initialstub_already_started.py File 1961 bytes May 23 2025 10:34:46.
fail_slp_switch.py File 524 bytes May 23 2025 10:34:46.
fail_switch_three_greenlets.py File 956 bytes May 23 2025 10:34:46.
fail_switch_three_greenlets2.py File 1285 bytes May 23 2025 10:34:46.
fail_switch_two_greenlets.py File 817 bytes May 23 2025 10:34:46.
leakcheck.py File 11964 bytes May 23 2025 10:34:46.
test_contextvars.py File 10541 bytes May 23 2025 10:34:46.
test_cpp.py File 2736 bytes May 23 2025 10:34:46.
test_extension_interface.py File 3829 bytes May 23 2025 10:34:46.
test_gc.py File 2923 bytes May 23 2025 10:34:46.
test_generator.py File 1240 bytes May 23 2025 10:34:46.
test_generator_nested.py File 3718 bytes May 23 2025 10:34:46.
test_greenlet.py File 46251 bytes May 23 2025 10:34:46.
test_greenlet_trash.py File 7947 bytes May 23 2025 10:34:46.
test_leaks.py File 17714 bytes May 23 2025 10:34:46.
test_stack_saved.py File 446 bytes May 23 2025 10:34:46.
test_throw.py File 3712 bytes May 23 2025 10:34:46.
test_tracing.py File 8250 bytes May 23 2025 10:34:46.
test_version.py File 1339 bytes May 23 2025 10:34:46.
test_weakref.py File 883 bytes May 23 2025 10:34:46.

Reading File: //opt/hc_python/lib64/python3.12/site-packages/greenlet/tests/fail_cpp_exception.py

# -*- coding: utf-8 -*-
"""
Helper for testing a C++ exception throw aborts the process.

Takes one argument, the name of the function in :mod:`_test_extension_cpp` to call.
"""
import sys
import greenlet
from greenlet.tests import _test_extension_cpp
print('fail_cpp_exception is running')

def run_unhandled_exception_in_greenlet_aborts():
    def _():
        _test_extension_cpp.test_exception_switch_and_do_in_g2(
            _test_extension_cpp.test_exception_throw_nonstd
        )
    g1 = greenlet.greenlet(_)
    g1.switch()


func_name = sys.argv[1]
try:
    func = getattr(_test_extension_cpp, func_name)
except AttributeError:
    if func_name == run_unhandled_exception_in_greenlet_aborts.__name__:
        func = run_unhandled_exception_in_greenlet_aborts
    elif func_name == 'run_as_greenlet_target':
        g = greenlet.greenlet(_test_extension_cpp.test_exception_throw_std)
        func = g.switch
    else:
        raise
print('raising', func, flush=True)
func()

SILENT KILLER Tool