Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #12619
| From | "Diego M. Rodriguez" <diego@moreda.io> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object has no attribute 'lstrip' with sphinx 2.4) |
| Date | 2020-05-27 10:20 +0200 |
| Message-ID | <AaZs5-4Wh-1@gated-at.bofh.it> (permalink) |
| References | <AaOZH-6YH-5@gated-at.bofh.it> <AaOZH-6YH-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On 5/26/20 11:06 PM, Scott Talbert wrote:
> It looks like it's a bug in sphinx.
I'm suspecting the same - and I was also not able to reproduce it in
a local installation (pip-installed sphinx trying to match the
dependencies and versions). However, it seems the culprit is at
"case/mock.py":51:
call = mock.call
In case a new upload of sphinx does not land in time, perhaps a
workaround along the lines of:
diff --git a/docs/reference/case.mock.rst b/docs/reference/case.mock.rst
index 1a28a5c..2b6562c 100644
--- a/docs/reference/case.mock.rst
+++ b/docs/reference/case.mock.rst
@@ -9,3 +9,4 @@
.. automodule:: case.mock
:members:
:undoc-members:
+ :exclude-members: call
might be acceptable? While not the ideal solution, the upstream
generated docs [1] end up including the docstring from
"unittest.mock._Call" [2] for that member, which might not provide too
much relevant info for end users anyway (and the inheritance from
"tuple" might be related to the original error).
[1] https://case.readthedocs.io/en/latest/reference/case.mock.html#case.mock.call
[2] https://github.com/python/cpython/blob/3.8/Lib/unittest/mock.py#L2352
--
Diego M. Rodriguez
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object has no attribute 'lstrip' with sphinx 2.4) Scott Talbert <swt@techie.net> - 2020-05-26 23:10 +0200 Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object has no attribute 'lstrip' with sphinx 2.4) "Diego M. Rodriguez" <diego@moreda.io> - 2020-05-27 10:20 +0200 Re: Help fixing #959558 (case: FTBFS: AttributeError: 'tuple' object has no attribute 'lstrip' with sphinx 2.4) Dmitry Shachnev <mitya57@debian.org> - 2020-05-27 11:30 +0200
csiph-web