--- Dependency check [begin] --- --- Dependency check [end] --- --- Distribution check [begin] --- Version 0.8.5 - 2022-08-26 (AG) Information: this ChangeLog entry matches the version number: Version 0.8.5 - 2022-08-26 (AG) Information: ./config/pyutils.par is an XML parameter file, I cannot yet validate it. Skipped. Warning: pyutils - missing lyt files. Now checking git repository... --- Distribution check [end] --- sed -e "s/DOC/pyutils/" -e "s/TYPE/user/" < \ /workspaces/sas/packages/sas/doc/lib/package.tex | /workspaces/sas/packages/sas/bin/texcombine | \ /workspaces/sas/packages/sas/bin/fixdoc -type=user pyutils 0.8.5 pyutils 22.0.0-352970877-20240708 > pyutils.tex including sasuser... including sasglobal... including pyutils_description... latex pyutils < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) bibtex pyutils < /dev/null > makedoc.log make[5]: [/workspaces/sas/Make.include:1062: pyutils.ps.gz] Error 2 (ignored) latex pyutils < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) latex pyutils < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) dvips -o pyutils.ps pyutils > makedoc.log 2>&1 || ( cat makedoc.log ; exit 1 ) dvipdf pyutils > makedoc.log 2>&1 || ( cat makedoc.log ; continue ) gzip -f pyutils.ps sed -e "s/DOC/XMMextractor_tools/" -e "s/TYPE/user/" < \ /workspaces/sas/packages/sas/doc/lib/package.tex | /workspaces/sas/packages/sas/bin/texcombine | \ /workspaces/sas/packages/sas/bin/fixdoc -type=user XMMextractor_tools 0.8.5 pyutils 22.0.0-352970877-20240708 > XMMextractor_tools.tex including sasuser... including sasglobal... including XMMextractor_tools_description... latex XMMextractor_tools < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) bibtex XMMextractor_tools < /dev/null > makedoc.log make[5]: [/workspaces/sas/Make.include:1062: XMMextractor_tools.ps.gz] Error 2 (ignored) latex XMMextractor_tools < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) latex XMMextractor_tools < /dev/null > makedoc.log || ( cat makedoc.log ; exit 1 ) dvips -o XMMextractor_tools.ps XMMextractor_tools > makedoc.log 2>&1 || ( cat makedoc.log ; exit 1 ) dvipdf XMMextractor_tools > makedoc.log 2>&1 || ( cat makedoc.log ; continue ) gzip -f XMMextractor_tools.ps SASRELDIR=../../.. ;\ export SASRELDIR ;\ latex2html -nouse_pdftex -init_file /workspaces/sas/packages/sas/doc/lib/latex2html.init pyutils > /dev/null texexpand V2020 (Released January 1, 2020) Warning: No implementation found for option: `version' for `sasdoc' package Warning: No implementation found for option: `version' for `sasdoc' package /usr/bin/echo "" mkpkgidx -t . > /dev/null || (rm -f pyutils/index.pl ; exit 1) pointer=pyutils/ChangeLog ; \ target=../../../packages/pyutils/ChangeLog ; \ if [ -f $target -a \( ! -h $pointer \) ] ; then \ ln -s ../$target $pointer ; \ fi SASRELDIR=../../.. ;\ export SASRELDIR ;\ latex2html -nouse_pdftex -init_file /workspaces/sas/packages/sas/doc/lib/latex2html.init XMMextractor_tools > /dev/null texexpand V2020 (Released January 1, 2020) Warning: No implementation found for option: `version' for `sasdoc' package Warning: No implementation found for option: `version' for `sasdoc' package /usr/bin/echo "" mkpkgidx -t . > /dev/null || (rm -f XMMextractor_tools/index.pl ; exit 1) pointer=XMMextractor_tools/ChangeLog ; \ target=../../../packages/pyutils/ChangeLog ; \ if [ -f $target -a \( ! -h $pointer \) ] ; then \ ln -s ../$target $pointer ; \ fi rm XMMextractor_tools.tex pyutils.tex Testing testpyutils ... FAILED Message: will run ./testpyutils for no longer than 600 seconds. ============================= test session starts ============================== platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 -- /sasbuild/tools/python-3.12.4/bin/python3 cachedir: .pytest_cache rootdir: /workspaces/sas/packages/pyutils plugins: anyio-4.4.0 collecting ... collected 11 items test_pyutils.py::test_get_key_word PASSED [ 9%] test_pyutils.py::test_pydump PASSED [ 18%] test_pyutils.py::test_is_notebook PASSED [ 27%] test_pyutils.py::test_create_file_from_data PASSED [ 36%] test_pyutils.py::test_merge_fits PASSED [ 45%] test_pyutils.py::test_imgstat PASSED [ 54%] test_pyutils.py::test_add_column_to_fits PASSED [ 63%] test_pyutils.py::test_add_row_to_fits PASSED [ 72%] test_pyutils.py::test_sort_fits PASSED [ 81%] test_xmmtools.py::test_postcard FAILED [ 90%] test_xmmtools.py::test_download_ODF FAILED [100%] =================================== FAILURES =================================== ________________________________ test_postcard _________________________________ def test_postcard(): xmm_tools.postcard_from_XSA('0505720401') if os.path.isfile('P0505720401EPX0003COLIM8000.PNG'): os.remove('P0505720401EPX0003COLIM8000.PNG') assert True else: > assert False E assert False test_xmmtools.py:34: AssertionError ______________________________ test_download_ODF _______________________________ def test_download_ODF(): xmm_tools.download_ODF_from_XSA('0505720401', 'ODF') if os.path.isfile('0505720401.tar.gz'): os.remove('0505720401.tar.gz') assert True else: > assert False E assert False test_xmmtools.py:51: AssertionError =============================== warnings summary =============================== test/test_pyutils.py::test_merge_fits /workspaces/sas/lib/python/pysas/pyutils/pyutils.py:500: RuntimeWarning: invalid value encountered in cast data_dict.update({key : np.concatenate((data_in_dict, data_key))}) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test_xmmtools.py::test_postcard - assert False FAILED test_xmmtools.py::test_download_ODF - assert False ==================== 2 failed, 9 passed, 1 warning in 1.50s ==================== Error while running ./testpyutils ERROR: one of the tests failed