diff --git a/providers/apache/impala/tests/system/__init__.py b/providers/apache/impala/tests/system/__init__.py new file mode 100644 index 0000000000000..5966d6b1d5261 --- /dev/null +++ b/providers/apache/impala/tests/system/__init__.py @@ -0,0 +1,17 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/providers/apache/tinkerpop/tests/integration/__init__.py b/providers/apache/tinkerpop/tests/integration/__init__.py index 13a83393a9124..5966d6b1d5261 100644 --- a/providers/apache/tinkerpop/tests/integration/__init__.py +++ b/providers/apache/tinkerpop/tests/integration/__init__.py @@ -14,3 +14,4 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/providers/apache/tinkerpop/tests/system/__init__.py b/providers/apache/tinkerpop/tests/system/__init__.py index 13a83393a9124..5966d6b1d5261 100644 --- a/providers/apache/tinkerpop/tests/system/__init__.py +++ b/providers/apache/tinkerpop/tests/system/__init__.py @@ -14,3 +14,4 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/providers/exasol/tests/system/__init__.py b/providers/exasol/tests/system/__init__.py index 13a83393a9124..5966d6b1d5261 100644 --- a/providers/exasol/tests/system/__init__.py +++ b/providers/exasol/tests/system/__init__.py @@ -14,3 +14,4 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/providers/git/tests/unit/__init__.py b/providers/git/tests/unit/__init__.py index 13a83393a9124..5966d6b1d5261 100644 --- a/providers/git/tests/unit/__init__.py +++ b/providers/git/tests/unit/__init__.py @@ -14,3 +14,4 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/scripts/ci/prek/check_providers_subpackages_all_have_init.py b/scripts/ci/prek/check_providers_subpackages_all_have_init.py index 85bf55626bc73..ad0445d5b0ef7 100755 --- a/scripts/ci/prek/check_providers_subpackages_all_have_init.py +++ b/scripts/ci/prek/check_providers_subpackages_all_have_init.py @@ -81,7 +81,7 @@ def _what_kind_of_test_init_py_needed(base_path: Path, folder: Path) -> tuple[bo global fatal_error should_fail = True fatal_error = True - return False, False + return True, True if depth == 2: # For known sub-packages that can occur in several packages we need to add __path__ extension return True, folder.name in KNOWN_SECOND_LEVEL_PATHS