Testing testpysasplot_utils ... FAILED
Message: will run ./testpysasplot_utils for no longer than 600 seconds.
============================= test session starts ==============================
platform linux -- Python 3.12.4, pytest-8.3.3, pluggy-1.5.0 -- /sasbuild/tools/python-3.12.4/bin/python3
cachedir: .pytest_cache
rootdir: /workspaces/xmm_sas/packages/pysasplot_utils
plugins: anyio-4.6.2.post1
collecting ... collected 8 items

test_pysasplot_utils.py::test_2dplot PASSED                              [ 12%]
test_pysasplot_utils.py::test_1d_hist PASSED                             [ 25%]
test_pysasplot_utils.py::test_table PASSED                               [ 37%]
test_pysasplot_utils.py::test_get_time_deltas PASSED                     [ 50%]
test_pysasplot_utils.py::test_TSrebin PASSED                             [ 62%]
test_pysasplot_utils.py::test_load_pickled_fig FAILED                    [ 75%]
test_pysasplot_utils.py::test_merge_pdf FAILED                           [ 87%]
test_pysasplot_utils.py::test_plot_image PASSED                          [100%]

=================================== FAILURES ===================================
____________________________ test_load_pickled_fig _____________________________

    def test_load_pickled_fig():
>      figs = pysasplt.load_figures(['test.fig.pickle'])

test_pysasplot_utils.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../lib/python/pysas/pysasplot_utils/pysasplot_utils.py:318: in load_figures
    unpickled = pickle.load(f)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <matplotlib.cbook.CallbackRegistry object at 0x7ff57929da50>
state = {'exception_handler': <function _exception_printer at 0x7ff583577dd0>}

    def __setstate__(self, state):
>       cid_count = state.pop('_cid_gen')
E       KeyError: '_cid_gen'

/sasbuild/tools/python-3.12.4/lib/python3.12/site-packages/matplotlib/cbook.py:204: KeyError
________________________________ test_merge_pdf ________________________________

    def test_merge_pdf():
        pdf_list = ('pdf1.pdf', 'pdf2.pdf')
>       status = pysasplt.merge_pdf(pdf_list, 'result.pdf')

test_pysasplot_utils.py:76: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../lib/python/pysas/pysasplot_utils/pysasplot_utils.py:678: in merge_pdf
    merger = PdfMerger()
/sasbuild/tools/python-3.12.4/lib/python3.12/site-packages/pypdf/_merger.py:42: in __init__
    deprecation_with_replacement("PdfMerger", "PdfWriter", "5.0.0")
/sasbuild/tools/python-3.12.4/lib/python3.12/site-packages/pypdf/_utils.py:384: in deprecation_with_replacement
    deprecation(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

msg = 'PdfMerger is deprecated and was removed in pypdf 5.0.0. Use PdfWriter instead.'

    def deprecation(msg: str) -> None:
>       raise DeprecationError(msg)
E       pypdf.errors.DeprecationError: PdfMerger is deprecated and was removed in pypdf 5.0.0. Use PdfWriter instead.

/sasbuild/tools/python-3.12.4/lib/python3.12/site-packages/pypdf/_utils.py:371: DeprecationError
=========================== short test summary info ============================
FAILED test_pysasplot_utils.py::test_load_pickled_fig - KeyError: '_cid_gen'
FAILED test_pysasplot_utils.py::test_merge_pdf - pypdf.errors.DeprecationErro...
========================= 2 failed, 6 passed in 8.50s ==========================
Error while running ./testpysasplot_utils
ERROR: one of the tests failed
