PATH: //opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/distutils/tests
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 test_build_ext.py
↓
X
📄 test_ccompiler_opt.py
↓
X
📄 test_ccompiler_opt_conf.py
↓
X
📄 test_exec_command.py
↓
X
📄 test_fcompiler.py
↓
X
📄 test_fcompiler_gnu.py
↓
X
📄 test_fcompiler_intel.py
↓
X
📄 test_fcompiler_nagfor.py
↓
X
📄 test_from_template.py
↓
X
📄 test_log.py
↓
X
📄 test_mingw32ccompiler.py
↓
X
📄 test_misc_util.py
↓
X
📄 test_npy_pkg_config.py
↓
X
📄 test_shell_utils.py
↓
X
📄 test_system_info.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: 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)
SIMPAN PERUBAHAN