SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib > python3.11 > site-packages > numpy > > distutils > 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/cloudlinux/venv/lib/python3.11/site-packages/numpy//distutils/tests

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 0 bytes April 17 2025 13:10:58.
test_build_ext.py File 2769 bytes April 17 2025 13:10:58.
test_ccompiler_opt.py File 28778 bytes April 17 2025 13:10:58.
test_ccompiler_opt_conf.py File 6347 bytes April 17 2025 13:10:58.
test_exec_command.py File 7395 bytes April 17 2025 13:10:58.
test_fcompiler.py File 1277 bytes April 17 2025 13:10:58.
test_fcompiler_gnu.py File 2136 bytes April 17 2025 13:10:58.
test_fcompiler_intel.py File 1058 bytes April 17 2025 13:10:58.
test_fcompiler_nagfor.py File 1102 bytes April 17 2025 13:10:58.
test_from_template.py File 1103 bytes April 17 2025 13:10:58.
test_log.py File 868 bytes April 17 2025 13:10:58.
test_mingw32ccompiler.py File 1609 bytes April 17 2025 13:10:58.
test_misc_util.py File 3218 bytes April 17 2025 13:10:58.
test_npy_pkg_config.py File 2557 bytes April 17 2025 13:10:58.
test_shell_utils.py File 2114 bytes April 17 2025 13:10:58.
test_system_info.py File 10999 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy//distutils/tests/test_from_template.py

from numpy.distutils.from_template import process_str
from numpy.testing import assert_equal


pyf_src = """
python module foo
    <_rd=real,double precision>
    interface
        subroutine <s,d>foosub(tol)
            <_rd>, intent(in,out) :: tol
        end subroutine <s,d>foosub
    end interface
end python module foo
"""

expected_pyf = """
python module foo
    interface
        subroutine sfoosub(tol)
            real, intent(in,out) :: tol
        end subroutine sfoosub
        subroutine dfoosub(tol)
            double precision, intent(in,out) :: tol
        end subroutine dfoosub
    end interface
end python module foo
"""


def normalize_whitespace(s):
    """
    Remove leading and trailing whitespace, and convert internal
    stretches of whitespace to a single space.
    """
    return ' '.join(s.split())


def test_from_template():
    """Regression test for gh-10712."""
    pyf = process_str(pyf_src)
    normalized_pyf = normalize_whitespace(pyf)
    normalized_expected_pyf = normalize_whitespace(expected_pyf)
    assert_equal(normalized_pyf, normalized_expected_pyf)

SILENT KILLER Tool