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_monkeypatch.C.foo_cls', - d.bar_two_args) - with fixture: - slf, cls = C.foo_cls() - self.expectThat(slf, Is(d)) - self.expectThat(cls, Is(C)) - slf, cls = C().foo_cls() - self.expectThat(slf, Is(d)) - self.expectThat(cls, Is(C)) - self._check_restored_static_or_class_method(oldmethod, oldmethod_inst, - C, 'foo_cls') - def test_patch_function_with_staticmethod(self): oldmethod = fake_no_args fixture = MonkeyPatch( /th>Author 2024-04-15utils: Don’t re-export ‘call-with-temporary-output-file’....* guix/utils.scm: Remove re-export of ‘call-with-temporary-output-file’. Autoload a number of modules. * guix/download.scm, guix/import/hackage.scm, guix/import/hexpm.scm, guix/import/opam.scm, guix/import/pypi.scm, tests/cpio.scm, tests/egg.scm, tests/opam.scm, tests/publish.scm, tests/store-database.scm, tests/utils.scm: Adjust imports accordingly. Change-Id: I3f5e94631397996a30be2ea4ff8b50a3371e8ee7 Ludovic Courtès 2021-11-17Merge branch 'master' into core-updates-frozenLudovic Courtès 2021-11-14tests: Adjust tests/egg.scm to latest API changes....This is a followup to b999c80c2e71bd4b3f26a18a321b7e7e7b580103. * tests/egg.scm (eval-test-with-egg-file): Pass 'version' argument to 'egg->guix-package'. Ludovic Courtès 2021-07-20import: egg: Emit new-style package inputs....* guix/import/egg.scm (egg->guix-package): Generate dependency list from a list of symbols. [egg-parse-dependency]: Return a list of symbols. [maybe-inputs]: Wrap INPUTS in 'list' instead of 'quasiquote'. * tests/egg.scm (match-chicken-foo): Adjust accordingly. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Sarah Morgensen 2021-06-03import: Add CHICKEN egg importer....* guix/import/egg.scm: New file. * guix/scripts/import/egg.scm: New file. * tests/egg.scm: New file. * Makefile.am (MODULES, SCM_TESTS): Register them. * po/guix/POTFILES.in: Likewise. * guix/scripts/import.scm (importers): Add egg importer. * doc/guix.texi (Invoking guix import, Invoking guix refresh): Document it. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Xinglu Chen