diff --git a/docs/api/testapi.html b/docs/api/testapi.html index 58e9c5afbf1..b9757983b5d 100644 --- a/docs/api/testapi.html +++ b/docs/api/testapi.html @@ -2078,7 +2078,7 @@
backend_get_wait_still diff --git a/docs/current.pdf b/docs/current.pdf index 786d62ea214..5f399afb02a 100644 Binary files a/docs/current.pdf and b/docs/current.pdf differ diff --git a/docs/index.html b/docs/index.html index 3a8b510968c..db03808b82b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -6375,10 +6375,10 @@

Test module interface

-
from testapi import *
+
from testapi import *
 
-def run():
-    # write in this block the code for your test.
+def run(self): + # write in this block the code for your test.
@@ -6389,7 +6389,7 @@

Test module interface

# Written in type-hinted python to indicate explicitly return types
-def run(): -> None
+def run(self): -> None
 def test_flags(): -> dict # *1
 def post_fail_hook(): -> None # *1
 def pre_run_hook(): -> None # *1
@@ -6571,7 +6571,7 @@ 

Notes on the Python API

# [...] omitted for brevity -def run(): +def run(self): perl.require('x11utils') # Start vncviewer - notice the named arguments passed as positional arguments @@ -6584,6 +6584,15 @@

Notes on the Python API

# [...] omitted for brevity
+
+

Additionally, Python tests do not support run_args. An error will be present +when a Python test detects the presence of run_args on schedule.

+
+
+

This is because of the way Inline::Python handles argument passing between +Perl <→ Python, references to complex Perl objects do not reach Python +properly and they can’t be used.

+

Example Perl test modules

@@ -12379,7 +12388,7 @@

Developing tests with container