From e3f631d7227b6a3b35f35088752b4339a9b8466047ff0b4d53f0a82921433698 Mon Sep 17 00:00:00 2001 From: Antoine Belvire Date: Fri, 25 Mar 2022 19:06:43 +0000 Subject: [PATCH] Accepting request 964782 from home:pgajdos:python - use unittest.mock instead https://trello.com/b/WsskhdXA/opensuse-python - modified patches % remove-nose.patch (extended) OBS-URL: https://build.opensuse.org/request/show/964782 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mohawk?expand=0&rev=13 --- python-mohawk.changes | 8 ++++++++ python-mohawk.spec | 2 +- remove-nose.patch | 10 ++++++---- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/python-mohawk.changes b/python-mohawk.changes index 641e47e..e9ff765 100644 --- a/python-mohawk.changes +++ b/python-mohawk.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Mar 24 13:27:46 UTC 2022 - pgajdos@suse.com + +- use unittest.mock instead + https://trello.com/b/WsskhdXA/opensuse-python +- modified patches + % remove-nose.patch (extended) + ------------------------------------------------------------------- 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