bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806)
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index a7d26f9..8402370 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -621,18 +621,19 @@
Example usage of some of the methods of :class:`Process`:
.. doctest::
+ :options: +ELLIPSIS
>>> import multiprocessing, time, signal
>>> p = multiprocessing.Process(target=time.sleep, args=(1000,))
>>> print(p, p.is_alive())
- <Process(Process-1, initial)> False
+ <Process(..., initial)> False
>>> p.start()
>>> print(p, p.is_alive())
- <Process(Process-1, started)> True
+ <Process(..., started)> True
>>> p.terminate()
>>> time.sleep(0.1)
>>> print(p, p.is_alive())
- <Process(Process-1, stopped[SIGTERM])> False
+ <Process(..., stopped[SIGTERM])> False
>>> p.exitcode == -signal.SIGTERM
True