mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Drop asynctest as it's not compatible with python 3.11 + fix deprecation
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -3,4 +3,3 @@ factory-boy<3.3.0
|
||||
httmock==1.4.0
|
||||
testfixtures==7.1.0
|
||||
tox
|
||||
asynctest
|
||||
|
||||
Reference in New Issue
Block a user