diff options
author | 2022-07-21 11:49:24 +0800 | |
---|---|---|
committer | 2022-07-21 11:49:24 +0800 | |
commit | 6d905874e7fc6188b4efdf7c99284e97121f5203 (patch) | |
tree | de4aeb014e6864974463b1471ef7af3da5d5f5d4 | |
parent | e35e4d16b0a231ed34a744bcb0a08c1278874df9 (diff) |
tests: solve the problem of duplicate name
To avoid error caused by the same name between the test set and
pyhton module, add an empty '__ init__. py' file in '/tests'
Bug-AGL: SPEC-4345
Signed-off-by: duerpei <duep.fnst@fujitsu.com>
Change-Id: I7748e6ae90b2eb12b59a39b3659b5910fc487810
-rw-r--r-- | tests/__init__.py | 0 | ||||
-rw-r--r-- | tests/bzip2/run_tests.py | 2 | ||||
-rw-r--r-- | tests/expat/run_tests.py | 2 |
3 files changed, 2 insertions, 2 deletions
diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/__init__.py diff --git a/tests/bzip2/run_tests.py b/tests/bzip2/run_tests.py index cc0dc98..c4ee56d 100644 --- a/tests/bzip2/run_tests.py +++ b/tests/bzip2/run_tests.py @@ -1,6 +1,6 @@ import pytest -import bzip2.parser as parser +import tests.bzip2.parser as parser from plugins.agl_test_ptest_base import PTESTBase diff --git a/tests/expat/run_tests.py b/tests/expat/run_tests.py index cdb0edf..aef92a7 100644 --- a/tests/expat/run_tests.py +++ b/tests/expat/run_tests.py @@ -1,6 +1,6 @@ import pytest -import expat.parser as parser +import tests.expat.parser as parser from plugins.agl_test_ptest_base import PTESTBase |