From beaa837313efd22ca85b6c598dc89256c3829f96 Mon Sep 17 00:00:00 2001 From: xunliu Date: Wed, 31 Jul 2024 22:21:21 +0800 Subject: [PATCH] [#4322] fix: python-client module import error --- .github/workflows/python-integration-test.yml | 1 + clients/client-python/tests/unittests/test_name_identifier.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-integration-test.yml b/.github/workflows/python-integration-test.yml index a7ffacfd72a..9d45f220f93 100644 --- a/.github/workflows/python-integration-test.yml +++ b/.github/workflows/python-integration-test.yml @@ -46,6 +46,7 @@ jobs: java-version: [ 8 ] env: PLATFORM: ${{ matrix.architecture }} + PYTHONPATH: ${{ github.workspace }}/clients/client-python steps: - uses: actions/checkout@v3 diff --git a/clients/client-python/tests/unittests/test_name_identifier.py b/clients/client-python/tests/unittests/test_name_identifier.py index 574a68ddb5b..932e8d3fbdf 100644 --- a/clients/client-python/tests/unittests/test_name_identifier.py +++ b/clients/client-python/tests/unittests/test_name_identifier.py @@ -37,7 +37,6 @@ def test_name_identifier_hash(self): self.assertNotEqual("test2", identifier_dict.get(name_identifier1)) def test_from_json_name_identifier(self): - test_name = "test_name_identifier" test_namespace_levels = ["1", "2", "3", "4"]