diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-10-15 21:46:00 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-10-15 21:46:00 +0200 |
commit | 56dbd871ea5fb4a1aa27f74eba8907f0a962db7f (patch) | |
tree | 0515019979651c148293404453b1dc9c6ec39f65 /tests/scripts/python | |
parent | a1057c9a035e77db257158af98153ae69882e19e (diff) | |
download | weechat-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.py | 4 | ||||
-rwxr-xr-x | tests/scripts/python/unparse.py | 2 |
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.""" |