1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
From: Debian PaN Maintainers <debian-pan-maintainers@alioth-lists.debian.net>
Date: Wed, 18 Mar 2026 18:09:51 +0100
Subject: remove_mock
---
test/test_atoms/test_atom.py | 2 +-
test/utils.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/test_atoms/test_atom.py b/test/test_atoms/test_atom.py
index d87e331..fa4a1b6 100644
--- a/test/test_atoms/test_atom.py
+++ b/test/test_atoms/test_atom.py
@@ -8,7 +8,7 @@
# Complete license can be found in the LICENSE file.
import unittest
-from mock import Mock
+from unittest.mock import Mock
from test.utils import create_object_attribute_test
diff --git a/test/utils.py b/test/utils.py
index 8e30ab6..f2a97d3 100644
--- a/test/utils.py
+++ b/test/utils.py
@@ -8,7 +8,7 @@
# Complete license can be found in the LICENSE file.
import time
-import mock
+from unittest import mock
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
@@ -40,4 +40,4 @@ def mock_settings():
from pyxrd.data import settings
settings._parse_args = mock.Mock(return_value=_mocked_parse_args())
settings.initialize()
-
\ No newline at end of file
+
|