From 957ccdf44167c39806fde1488ffa93eecb0c0d5d Mon Sep 17 00:00:00 2001 From: junkmd Date: Fri, 27 Dec 2024 21:29:36 +0900 Subject: [PATCH] It is difficult to perform doctest validation that includes `Exception ignored in: ...`, so use a `pycon` code block instead. --- docs/source/com_interfaces.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/com_interfaces.rst b/docs/source/com_interfaces.rst index 7e903106..af4907c9 100644 --- a/docs/source/com_interfaces.rst +++ b/docs/source/com_interfaces.rst @@ -92,7 +92,7 @@ The ``IUnknown`` as a Python class if ``Release`` is called at the aforementioned timing, it may raise an ``OSError``. - .. doctest:: + .. sourcecode:: pycon >>> from comtypes.client import CreateObject, GetModule >>> GetModule('UIAutomationCore.dll') # doctest: +ELLIPSIS