This is an automated email from the ASF dual-hosted git repository.

jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-python.git

commit 8a23065e46fefa3076c89c7d0a31bd30194afec1
Author: Jiri DanÄ›k <[email protected]>
AuthorDate: Tue Apr 11 14:16:13 2023 +0200

    QPID-8631: `qpid_tests` also need `absolute_import` from `__future__` and 
fix relative imports
---
 qpid_tests/__init__.py            |  3 ++-
 qpid_tests/broker_1_0/__init__.py | 11 ++++++-----
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/qpid_tests/__init__.py b/qpid_tests/__init__.py
index 0459ace..5477007 100644
--- a/qpid_tests/__init__.py
+++ b/qpid_tests/__init__.py
@@ -19,4 +19,5 @@
 # under the License.
 #
 
-import broker_1_0, broker_0_10, broker_0_9, broker_0_8
+from __future__ import absolute_import
+from . import broker_1_0, broker_0_10, broker_0_9, broker_0_8
diff --git a/qpid_tests/broker_1_0/__init__.py 
b/qpid_tests/broker_1_0/__init__.py
index b14bb96..4d6a345 100644
--- a/qpid_tests/broker_1_0/__init__.py
+++ b/qpid_tests/broker_1_0/__init__.py
@@ -19,8 +19,9 @@
 # under the License.
 #
 
-from general import *
-from legacy_exchanges import *
-from selector import *
-from translation import *
-from tx import *
+from __future__ import absolute_import
+from .general import *
+from .legacy_exchanges import *
+from .selector import *
+from .translation import *
+from .tx import *


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to