Repository: miketheman/pytest-socket (language: python)

Issue:
Question about asynctest and Python 3.8+ compatibility
Hi,

While packing your project for Guix I've faced with issue of abandoned `Martiusweb/asynctest` project wich you use in https://github.com/miketheman/pytest-socket/blob/57c905e745b13dfcc82007132d0e76f89b7fd77e/tests/test_async.py#L10 but the project itself lost support for Python 3.8+.

- https://github.com/Martiusweb/asynctest/issues/160
- https://github.com/Martiusweb/asynctest/issues/158

May you provide any details on further requirements for `Martiusweb/asynctest` in your test suit?

Thanks.



Discussion / hints:
Thanks for the report!

Usage of asynctest is only in a single usage you referenced, to execute a test suite that uses the asynctest library, reported back in #6 

If the library is no longer active, I would be happy to review a pull request to remove it, but ot does still appear to work: https://github.com/miketheman/pytest-socket/actions/runs/3101558257/jobs/5343958310#step:5:51
asynctest completely fails in Python 3.11 - see https://github.com/miketheman/pytest-socket/pull/175

Going to need to resolve this somehow.
This issue is stale because it has been open for 90 days with no activity.

Fix patch:
diff --git a/pyproject.toml b/pyproject.toml
index 42afe98..69517c3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -39,7 +39,6 @@ coverage = "^7.0"
 pytest = "^7.0"
 pytest-httpbin = "^2.0.0"
 pytest-randomly = "^3.5.0"
-asynctest = "^0.13.0"
 requests = "^2.26.0"
 starlette = "^0.28.0"
 httpx = "^0.24.0"


Test patch:
diff --git a/tests/test_async.py b/tests/test_async.py
index 6f63634..e272994 100644
--- a/tests/test_async.py
+++ b/tests/test_async.py
@@ -2,29 +2,6 @@
 from test_socket import assert_socket_blocked
 
 
-@unix_sockets_only
-def test_asynctest(testdir):
-    testdir.makepyfile(
-        """
-        import socket
-        import asynctest
-
-
-        class AnExampleWithTestCaseAndCoroutines(asynctest.TestCase):
-            async def a_coroutine(self):
-                return "I worked"
-
-            async def test_that_a_coroutine_runs(self):
-                self.assertIn("worked", await self.a_coroutine())
-
-            async def test_inet_is_blocked(self):
-                socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-        """
-    )
-    result = testdir.runpytest("--disable-socket", "--allow-unix-socket")
-    result.assert_outcomes(passed=1, skipped=0, failed=1)
-
-
 @unix_sockets_only
 def test_starlette(testdir):
     testdir.makepyfile(