From 2da57b2cb5e4e868b9d97e8c5d8a9ef90933c9e3 Mon Sep 17 00:00:00 2001 From: Justin Warren Date: Sun, 9 Jul 2023 07:29:06 +1000 Subject: [PATCH] test util no longer tries to load default config file if conf tomldata is empty. --- tests/helpers/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/helpers/util.py b/tests/helpers/util.py index faed6e1..c7c1bdf 100644 --- a/tests/helpers/util.py +++ b/tests/helpers/util.py @@ -7,5 +7,6 @@ def shim_argparse(testargv: list=[], tomldata: str=None): """ ap = setup_argparse() args = ap.parse_args(testargv) - args = augment_args(args, tomldata) + if tomldata is not None: + args = augment_args(args, tomldata) return args \ No newline at end of file