This pull request addresses a bug fix, version update, and minor code improvements. The most important changes include fixing issue 666 related to the doc.close_office() method, updating the version number, and adding a context manager to suppress exceptions during office termination in tests.
Bug Fixes:
ooodev/loader/inst/lo_inst.py: Moved the assignment of self._xdesktop = None to the on_office_closed method to ensure proper office termination.
Version Update:
pyproject.toml: Updated the project version from 0.47.17 to 0.47.18.
This pull request addresses a bug fix, version update, and minor code improvements. The most important changes include fixing issue 666 related to the
doc.close_office()
method, updating the version number, and adding a context manager to suppress exceptions during office termination in tests.Bug Fixes:
ooodev/loader/inst/lo_inst.py
: Moved the assignment ofself._xdesktop = None
to theon_office_closed
method to ensure proper office termination.Version Update:
pyproject.toml
: Updated the project version from0.47.17
to0.47.18
.docs/version/version_hist.rst
: Added version0.47.18
with a note about fixing issue 666.Code Improvements:
tests/conftest.py
: Addedcontextlib
import and usedcontextlib.suppress
to handle exceptions during office termination in tests. [1] [2]