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.4, 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.8.0
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 PASSED                           [ 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 0x7f4447253580>
state = {'exception_handler': <function _exception_printer at 0x7f444cb36ed0>}

    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:282: KeyError
=========================== short test summary info ============================
FAILED test_pysasplot_utils.py::test_load_pickled_fig - KeyError: '_cid_gen'
========================= 1 failed, 7 passed in 2.32s ==========================
Error while running ./testpysasplot_utils
ERROR: one of the tests failed
