summaryrefslogtreecommitdiffhomepage
path: root/test/unit.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-02-20 20:20:02 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-02-20 20:20:02 +0300
commitb2ca342902ec84b4415982be08d89c8bfe0ed431 (patch)
treeaf598b4e6b230f153db7a6522a2acdb1d0561e81 /test/unit.py
parentac10bf8c7b4cbfb9421956ba8ee3005bb7f4fbfa (diff)
downloadunit-b2ca342902ec84b4415982be08d89c8bfe0ed431.tar.gz
unit-b2ca342902ec84b4415982be08d89c8bfe0ed431.tar.bz2
Tests: JSON array allowed.
Diffstat (limited to '')
-rw-r--r--test/unit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit.py b/test/unit.py
index bd6128cc..2af3e8f6 100644
--- a/test/unit.py
+++ b/test/unit.py
@@ -433,7 +433,7 @@ class TestUnitControl(TestUnitHTTP):
# TODO http client
def conf(self, conf, path='/config'):
- if isinstance(conf, dict):
+ if isinstance(conf, dict) or isinstance(conf, list):
conf = json.dumps(conf)
if path[:1] != '/':