Drop asynctest as it's not compatible with python 3.11 + fix deprecation

This commit is contained in:
Floréal Cabanettes
2023-07-14 15:58:00 +02:00
parent c38cfa08a6
commit f44816f569
2 changed files with 2 additions and 5 deletions
+2 -4
View File
@@ -1,8 +1,7 @@
"""Policy daemon related tests."""
import asyncio
# from mock import patch
from asynctest import patch
from mock import patch
from multiprocessing import Process
import socket
import time
@@ -200,8 +199,7 @@ sasl_username=user@test.com
await policyd_core.reset_counters()
# Run the async test
coro = asyncio.coroutine(run_test)
event_loop.run_until_complete(coro())
event_loop.run_until_complete(run_test())
event_loop.close()
self.assertEqual(
-1
View File
@@ -3,4 +3,3 @@ factory-boy<3.3.0
httmock==1.4.0
testfixtures==7.1.0
tox
asynctest