diff options
author | Andrey Zelenkov <zelenkov@nginx.com> | 2019-02-20 20:20:02 +0300 |
---|---|---|
committer | Andrey Zelenkov <zelenkov@nginx.com> | 2019-02-20 20:20:02 +0300 |
commit | b2ca342902ec84b4415982be08d89c8bfe0ed431 (patch) | |
tree | af598b4e6b230f153db7a6522a2acdb1d0561e81 | |
parent | ac10bf8c7b4cbfb9421956ba8ee3005bb7f4fbfa (diff) | |
download | unit-b2ca342902ec84b4415982be08d89c8bfe0ed431.tar.gz unit-b2ca342902ec84b4415982be08d89c8bfe0ed431.tar.bz2 |
Tests: JSON array allowed.
Diffstat (limited to '')
-rw-r--r-- | test/unit.py | 2 |
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] != '/': |