From b8f81083a3405fe885a9ba54b71dac24eb1f0793 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Fri, 10 Nov 2023 22:41:53 +0300 Subject: [PATCH] test: Update import from legacy mock package to modern unittest --- src/wormhole_mailbox_server/test/test_rlimits.py | 2 +- src/wormhole_mailbox_server/test/test_server.py | 2 +- src/wormhole_mailbox_server/test/test_service.py | 2 +- src/wormhole_mailbox_server/test/test_web.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wormhole_mailbox_server/test/test_rlimits.py b/src/wormhole_mailbox_server/test/test_rlimits.py index 913bbb5..4692acf 100644 --- a/src/wormhole_mailbox_server/test/test_rlimits.py +++ b/src/wormhole_mailbox_server/test/test_rlimits.py @@ -1,5 +1,5 @@ from __future__ import print_function, unicode_literals -import mock +from unittest import mock from twisted.trial import unittest from ..increase_rlimits import increase_rlimits diff --git a/src/wormhole_mailbox_server/test/test_server.py b/src/wormhole_mailbox_server/test/test_server.py index 6f223d0..bd23693 100644 --- a/src/wormhole_mailbox_server/test/test_server.py +++ b/src/wormhole_mailbox_server/test/test_server.py @@ -1,5 +1,5 @@ from __future__ import print_function, unicode_literals -import mock +from unittest import mock from twisted.trial import unittest from twisted.python import log from .common import ServerBase, _Util diff --git a/src/wormhole_mailbox_server/test/test_service.py b/src/wormhole_mailbox_server/test/test_service.py index 0f419f3..bfa5058 100644 --- a/src/wormhole_mailbox_server/test/test_service.py +++ b/src/wormhole_mailbox_server/test/test_service.py @@ -1,6 +1,6 @@ from __future__ import unicode_literals, print_function from twisted.trial import unittest -import mock +from unittest import mock from twisted.application.service import MultiService from .. import server_tap diff --git a/src/wormhole_mailbox_server/test/test_web.py b/src/wormhole_mailbox_server/test/test_web.py index 9dbbbfe..c271cbe 100644 --- a/src/wormhole_mailbox_server/test/test_web.py +++ b/src/wormhole_mailbox_server/test/test_web.py @@ -1,6 +1,6 @@ from __future__ import print_function, unicode_literals import io, time -import mock +from unittest import mock import treq from twisted.trial import unittest from twisted.internet import defer, reactor