Originally created by @segfault on #15330 (Redmine)
Some of our Python scripts, e.g. those that were ported from bash as part of #11198, have
doctests. We should run them on our CI.
Note that some of our doctests require Python 3.6 or newer: see 266aa246 ⇒ blocked by sysadmin#17731.