tests/run-tests.py
changeset 52594 b0ecab6773cf
parent 52593 eef540baab65
child 52595 181af28757f9
--- a/tests/run-tests.py	Thu Jan 02 22:19:55 2025 +0100
+++ b/tests/run-tests.py	Thu Jan 02 16:22:14 2025 +0100
@@ -2034,9 +2034,9 @@
                     # We've just entered a Python block. Add the header.
                     inpython = True
                     addsalt(prepos, False)  # Make sure we report the exit code.
-                    script.append(
-                        b'"%s" -m heredoctest <<EOF\n' % self._pythonb
-                    )
+                    pyh = b'"%s"  %s/testlib/heredoctest.py <<EOF\n'
+                    pyh %= (self._pythonb, RUNTEST_DIR_FORWARD_SLASH)
+                    script.append(pyh)
                 addsalt(n, True)
                 script.append(l[2:])
             elif l.startswith(b'  ... '):  # python inlines