From 10c1edd6269cc5e836c17398ddd368ba61812716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20K=C5=82oczko?= Date: Wed, 14 Feb 2024 22:14:37 +0000 Subject: [PATCH 1/2] fix test suite importing assert_socket_blocked from common MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Partial fix of the #308 Signed-off-by: Tomasz Kłoczko --- tests/test_async.py | 2 +- tests/test_precedence.py | 2 +- tests/test_socket.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_async.py b/tests/test_async.py index 78486d0..24156bc 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -1,5 +1,5 @@ from conftest import unix_sockets_only -from tests.common import assert_socket_blocked +from common import assert_socket_blocked @unix_sockets_only diff --git a/tests/test_precedence.py b/tests/test_precedence.py index 7da9e9c..05dcb60 100644 --- a/tests/test_precedence.py +++ b/tests/test_precedence.py @@ -1,7 +1,7 @@ """Test module to express precedence tests between the different configuration combinations""" -from tests.common import assert_socket_blocked +from common import assert_socket_blocked def test_disable_via_fixture(testdir): diff --git a/tests/test_socket.py b/tests/test_socket.py index de8e877..eaf5090 100644 --- a/tests/test_socket.py +++ b/tests/test_socket.py @@ -1,7 +1,7 @@ import pytest from conftest import unix_sockets_only -from tests.common import assert_socket_blocked +from common import assert_socket_blocked PYFILE_SOCKET_USED_IN_TEST_ARGS = """ import socket From bb96c642c8a6cbe4703dcf4be542727cabb94ca2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 22:16:46 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_async.py | 3 ++- tests/test_socket.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_async.py b/tests/test_async.py index 24156bc..853dfc7 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -1,6 +1,7 @@ -from conftest import unix_sockets_only from common import assert_socket_blocked +from conftest import unix_sockets_only + @unix_sockets_only def test_starlette(testdir): diff --git a/tests/test_socket.py b/tests/test_socket.py index eaf5090..cb26aba 100644 --- a/tests/test_socket.py +++ b/tests/test_socket.py @@ -1,7 +1,7 @@ import pytest +from common import assert_socket_blocked from conftest import unix_sockets_only -from common import assert_socket_blocked PYFILE_SOCKET_USED_IN_TEST_ARGS = """ import socket