https://sources.debian.org/data/main/p/python-fixtures/3.0.0-4/debian/patches/remove-broken-monkey-patch-test.patch The last release was May 2016. This can be removed when the next release happens. Description: Remove broken monkey patch tests Author: Thomas Goirand Bug-Debian: https://bugs.debian.org/973239 Forwarded: no Last-Update: 2020-11-12 --- python-fixtures-3.0.0.orig/fixtures/tests/_fixtures/test_monkeypatch.py +++ python-fixtures-3.0.0/fixtures/tests/_fixtures/test_monkeypatch.py @@ -181,22 +181,6 @@ class TestMonkeyPatch(testtools.TestCase self._check_restored_static_or_class_method(oldmethod, oldmethod_inst, C, 'foo_cls') - def test_patch_classmethod_with_classmethod(self): - oldmethod = C.foo_cls - oldmethod_inst = C().foo_cls - fixture = MonkeyPatch( - 'fixtures.tests._fixtures.test_monkeypatch.C.foo_cls', - D.bar_cls_args) - with fixture: - cls, target_class = C.foo_cls() - self.expectThat(cls, Is(D)) - self.expectThat(target_class, Is(C)) - cls, target_class = C().foo_cls() - self.expectThat(cls, Is(D)) - self.expectThat(target_class, Is(C)) - self._check_restored_static_or_class_method(oldmethod, oldmethod_inst, - C, 'foo_cls') - def test_patch_classmethod_with_function(self): oldmethod = C.foo_cls oldmethod_inst = C().foo_cls @@ -212,23 +196,6 @@ class TestMonkeyPatch(testtools.TestCase self._check_restored_static_or_class_method(oldmethod, oldmethod_inst, C, 'foo_cls') - def test_patch_classmethod_with_boundmethod(self): - oldmethod = C.foo_cls - oldmethod_inst = C().foo_cls - d = D() - fixture = MonkeyPatch( - 'fixtures.tests._fixtures.test_monkeyp-*- mode: org; coding: utf-8; -*- #+TITLE: Hacking GNU Guix and Its Incredible Distro Copyright © 2012, 2013, 2014, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org> Copyright © 2015, 2017 Mathieu Lirzin <mthl@gnu.org> Copyright © 2017 Leo Famulari <leo@famulari.name> Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net> Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. * C