From 36a23bcdd06bdc7524e793b2aa5a82abbbd2a5a8 Mon Sep 17 00:00:00 2001 From: yanxk Date: Sun, 23 Oct 2022 14:26:01 +0800 Subject: agl-test-framework: fix pytest warning fix a pytest warning caused by missing escape character. Bug-AGL: SPEC-4345 Signed-off-by: yanxk Change-Id: Iec8a4faf09322b6518409cb575d0149cad6d34a9 --- tests/LTP/agl_test_ltp_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/LTP/agl_test_ltp_base.py') diff --git a/tests/LTP/agl_test_ltp_base.py b/tests/LTP/agl_test_ltp_base.py index be78a4c..9c8f5bc 100644 --- a/tests/LTP/agl_test_ltp_base.py +++ b/tests/LTP/agl_test_ltp_base.py @@ -34,7 +34,7 @@ class LTPBase(AGLBaseTest): def get_test_case_list(self): case_list = list() - reObj = re.compile('^([\\w\-]+)(\\s+)(\\w+)', re.MULTILINE) + reObj = re.compile('^([\\w\\-]+)(\\s+)(\\w+)', re.MULTILINE) test_file = self.LTPTEST + self.test_name test_cases = open(test_file, 'r') -- cgit 1.2.3-korg