diff options
Diffstat (limited to 'tests/LTP/agl_test_ltp_base.py')
-rw-r--r-- | tests/LTP/agl_test_ltp_base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/LTP/agl_test_ltp_base.py b/tests/LTP/agl_test_ltp_base.py index 982e60d..06f3642 100644 --- a/tests/LTP/agl_test_ltp_base.py +++ b/tests/LTP/agl_test_ltp_base.py @@ -37,6 +37,9 @@ class LTPBase(AGLBaseTest): reObj = re.compile('^([\\w\\-]+)(\\s+)(\\w+)', re.MULTILINE) test_file = self.LTPTEST + self.test_name + path_obj = pathlib.Path(test_file) + if not path_obj.is_file(): + return case_list test_cases = open(test_file, 'r') line = test_cases.readline() while line: |