summaryrefslogtreecommitdiff
path: root/tests/scripts/python
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-10-15 21:46:00 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-10-15 21:46:00 +0200
commit56dbd871ea5fb4a1aa27f74eba8907f0a962db7f (patch)
tree0515019979651c148293404453b1dc9c6ec39f65 /tests/scripts/python
parenta1057c9a035e77db257158af98153ae69882e19e (diff)
downloadweechat-56dbd871ea5fb4a1aa27f74eba8907f0a962db7f.zip
api: do not expect any return value in callbacks change/delete of config_new_option (scripting API)
Diffstat (limited to 'tests/scripts/python')
-rw-r--r--tests/scripts/python/testapi.py4
-rwxr-xr-xtests/scripts/python/unparse.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/scripts/python/testapi.py b/tests/scripts/python/testapi.py
index 1370fa884..2b12e8011 100644
--- a/tests/scripts/python/testapi.py
+++ b/tests/scripts/python/testapi.py
@@ -181,12 +181,12 @@ def option_check_value_cb(data, option, value):
def option_change_cb(data, option):
"""Option change callback."""
- return 1
+ pass
def option_delete_cb(data, option):
"""Option delete callback."""
- return 1
+ pass
def test_config():
diff --git a/tests/scripts/python/unparse.py b/tests/scripts/python/unparse.py
index 6a7e51240..99b6b2869 100755
--- a/tests/scripts/python/unparse.py
+++ b/tests/scripts/python/unparse.py
@@ -1090,7 +1090,7 @@ class UnparseGuile(UnparsePython):
def _ast_pass(self, node):
"""Add an AST Pass in output."""
- pass
+ self.add('#t')
def _ast_return(self, node):
"""Add an AST Return in output."""