diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-01-25 22:07:13 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-01-25 22:07:13 -0500 |
commit | 1a5302435ff0d2822b823f5a6fe01faa7a85c629 (patch) | |
tree | ac7810c88b560532f22d2bab2e59609cd7305c21 /gnu/packages/patches/python-pdoc3-tests.patch | |
parent | 3ff2ac4980dacf10087e4b42bd9fbc490591900c (diff) | |
parent | 070b8a893febd6e7d8b2b7c8c4dcebacf7845aa9 (diff) | |
download | guix-1a5302435ff0d2822b823f5a6fe01faa7a85c629.tar.gz |
Merge branch 'master' into staging.
With "conflicts" solved (all in favor of master except git) in: gnu/local.mk gnu/packages/databases.scm gnu/packages/glib.scm gnu/packages/gnome.scm gnu/packages/gnupg.scm gnu/packages/gnuzilla.scm gnu/packages/graphics.scm gnu/packages/gstreamer.scm gnu/packages/gtk.scm gnu/packages/linux.scm gnu/packages/machine-learning.scm gnu/packages/networking.scm gnu/packages/polkit.scm gnu/packages/pulseaudio.scm gnu/packages/rpc.scm gnu/packages/rust.scm gnu/packages/version-control.scm gnu/packages/w3m.scm
Diffstat (limited to 'gnu/packages/patches/python-pdoc3-tests.patch')
-rw-r--r-- | gnu/packages/patches/python-pdoc3-tests.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/patches/python-pdoc3-tests.patch b/gnu/packages/patches/python-pdoc3-tests.patch new file mode 100644 index 0000000000..a411b300ee --- /dev/null +++ b/gnu/packages/patches/python-pdoc3-tests.patch @@ -0,0 +1,42 @@ +Taken from upstream: https://github.com/pdoc3/pdoc/commit/4aa70de2221a34a3003a7e5f52a9b91965f0e359.patch. + +From 4aa70de2221a34a3003a7e5f52a9b91965f0e359 Mon Sep 17 00:00:00 2001 +From: Spencer Baugh <sbaugh@catern.com> +Date: Thu, 23 Sep 2021 09:00:25 -0400 +Subject: [PATCH] TST: use explicit ClassWithNew instead of typing.Generic + +typing.Generic doesn't have a __new__ method in 3.9. + +Fixes https://github.com/pdoc3/pdoc/issues/355 +--- + pdoc/test/__init__.py | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +diff --git a/pdoc/test/__init__.py b/pdoc/test/__init__.py +index e8c3d94..8b67ab7 100644 +--- a/pdoc/test/__init__.py ++++ b/pdoc/test/__init__.py +@@ -1043,16 +1043,20 @@ class C2: + + self.assertEqual(pdoc.Class('C2', mod, C2).params(), ['a', 'b', 'c=None', '*', 'd=1', 'e']) + +- class G(typing.Generic[T]): ++ class ClassWithNew: ++ def __new__(self, arg): ++ pass ++ ++ class G(ClassWithNew): + def __init__(self, a, b, c=100): + pass + + self.assertEqual(pdoc.Class('G', mod, G).params(), ['a', 'b', 'c=100']) + +- class G2(typing.Generic[T]): ++ class G2(ClassWithNew): + pass + +- self.assertEqual(pdoc.Class('G2', mod, G2).params(), ['*args', '**kwds']) ++ self.assertEqual(pdoc.Class('G2', mod, G2).params(), ['arg']) + + def test_url(self): + mod = pdoc.Module(EXAMPLE_MODULE) |