Skip to content

Commit f4298f9

Browse files
committed
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>
1 parent 0951778 commit f4298f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def find_diffs(d1, d2):
3131
if k in d2
3232
}
3333

34-
if isinstance(d1, str):
34+
if isinstance(d1, str) or isinstance(d1, list):
3535
return d1 == d2
3636

3737
return d1 - d2

0 commit comments

Comments
 (0)