From: Štěpán Balážik Date: Tue, 27 Jan 2026 21:40:47 +0000 (+0100) Subject: Use relative imports and __init__.py in the statschannel test X-Git-Tag: v9.21.19~15^2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0079b57224f522a4cddadf05be3983207b96951;p=thirdparty%2Fbind9.git Use relative imports and __init__.py in the statschannel test This is in preparation for automatic import sorting. --- diff --git a/bin/tests/system/statschannel/__init__.py b/bin/tests/system/statschannel/__init__.py new file mode 100644 index 00000000000..6ba22b927a6 --- /dev/null +++ b/bin/tests/system/statschannel/__init__.py @@ -0,0 +1,15 @@ +# Copyright (C) Internet Systems Consortium, Inc. ("ISC") +# +# SPDX-License-Identifier: MPL-2.0 +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, you can obtain one at https://mozilla.org/MPL/2.0/. +# +# See the COPYRIGHT file distributed with this work for additional +# information regarding copyright ownership. + + +import pytest + +pytest.register_assert_rewrite("generic") diff --git a/bin/tests/system/statschannel/tests_json.py b/bin/tests/system/statschannel/tests_json.py index c495a94a83b..926da5dab4e 100755 --- a/bin/tests/system/statschannel/tests_json.py +++ b/bin/tests/system/statschannel/tests_json.py @@ -18,8 +18,7 @@ import requests import isctest.mark -pytest.register_assert_rewrite("generic") -import generic +from . import generic pytestmark = [ isctest.mark.with_json_c, diff --git a/bin/tests/system/statschannel/tests_xml.py b/bin/tests/system/statschannel/tests_xml.py index 97ca7c13650..b7a1992846b 100755 --- a/bin/tests/system/statschannel/tests_xml.py +++ b/bin/tests/system/statschannel/tests_xml.py @@ -19,8 +19,7 @@ import requests import isctest.mark -pytest.register_assert_rewrite("generic") -import generic +from . import generic pytestmark = [ isctest.mark.with_libxml2,