diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-07-23 18:55:18 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-08-28 22:12:45 +0100 |
commit | f4298f94292b99e7f384f8048e695b8263d495f2 (patch) | |
tree | 593b804ab4f26f8115ebe10e6b13da7f4af024c5 | |
parent | 0951778d48846a043c033425da8a0f732bc0c8a9 (diff) | |
download | unit-f4298f94292b99e7f384f8048e695b8263d495f2.tar.gz unit-f4298f94292b99e7f384f8048e695b8263d495f2.tar.bz2 |
tests: Fix `/status' endpoint to cater for lists
We can now get list objects from the /status endpoint in the case of
having different versions of the same language module.
That led to this error
> return d1 - d2
E TypeError: unsupported operand type(s) for -: 'list' and 'list'
We already cover a similar case for when we have simple strings so add
this to that.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r-- | test/unit/status.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/status.py b/test/unit/status.py index d8bb4e41..679008d0 100644 --- a/test/unit/status.py +++ b/test/unit/status.py @@ -31,7 +31,7 @@ class Status: if k in d2 } - if isinstance(d1, str): + if isinstance(d1, str) or isinstance(d1, list): return d1 == d2 return d1 - d2 |