From 8899b44add2c96531eb34b6999ee3f6f5890806f Mon Sep 17 00:00:00 2001 From: xuyige Date: Tue, 28 Aug 2018 17:19:10 +0800 Subject: [PATCH] fix a bug --- test/loader/test_loader.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/loader/test_loader.py b/test/loader/test_loader.py index ba33801e..a423f094 100644 --- a/test/loader/test_loader.py +++ b/test/loader/test_loader.py @@ -33,12 +33,12 @@ class TestConfigLoader(unittest.TestCase): return dict test_arg = ConfigSection() - #ConfigLoader("config", "").load_config(os.path.join("./loader", "config"), {"test": test_arg}) - ConfigLoader("config", "").load_config("/home/ygxu/github/fastNLP_testing/fastNLP/test/loader/config", - {"test": test_arg}) + ConfigLoader("config", "").load_config(os.path.join("./loader", "config"), {"test": test_arg}) + #ConfigLoader("config", "").load_config("/home/ygxu/github/fastNLP_testing/fastNLP/test/loader/config", + # {"test": test_arg}) - dict = read_section_from_config("/home/ygxu/github/fastNLP_testing/fastNLP/test/loader/config", "test") - #dict = read_section_from_config(os.path.join("./loader", "config"), "test") + #dict = read_section_from_config("/home/ygxu/github/fastNLP_testing/fastNLP/test/loader/config", "test") + dict = read_section_from_config(os.path.join("./loader", "config"), "test") for sec in dict: if (sec not in test_arg) or (dict[sec] != test_arg[sec]):