diff --git a/python-mohawk.changes b/python-mohawk.changes index 641e47e..62817d1 100644 --- a/python-mohawk.changes +++ b/python-mohawk.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 24 13:27:46 UTC 2022 - pgajdos@suse.com + +- Extend remove-nose.patch: Use unittest.mock instead of + python-mock (https://trello.com/c/S6eADbii/64-remove-python-mock) + ------------------------------------------------------------------- Thu Sep 23 06:11:30 UTC 2021 - Steve Kowalik diff --git a/python-mohawk.spec b/python-mohawk.spec index c6e719d..449b1cd 100644 --- a/python-mohawk.spec +++ b/python-mohawk.spec @@ -1,7 +1,7 @@ # # spec file for package python-mohawk # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/remove-nose.patch b/remove-nose.patch index e2b5ff2..c5c2f53 100644 --- a/remove-nose.patch +++ b/remove-nose.patch @@ -1,12 +1,14 @@ Index: mohawk-1.1.0/mohawk/tests.py =================================================================== ---- mohawk-1.1.0.orig/mohawk/tests.py -+++ mohawk-1.1.0/mohawk/tests.py -@@ -4,7 +4,6 @@ from unittest import TestCase +--- mohawk-1.1.0.orig/mohawk/tests.py 2019-10-28 15:45:53.000000000 +0100 ++++ mohawk-1.1.0/mohawk/tests.py 2022-03-24 14:26:38.698018107 +0100 +@@ -3,8 +3,7 @@ import warnings + from unittest import TestCase from base64 import b64decode, urlsafe_b64encode - import mock +-import mock -from nose.tools import eq_, raises ++import unittest.mock as mock import six from . import Receiver, Sender