Skip to content
This repository was archived by the owner on Mar 27, 2022. It is now read-only.
This repository was archived by the owner on Mar 27, 2022. It is now read-only.

pydoc mocktest fails #9

Description

@jmgurney

Trying to get docs for mocktest w/ pydoc fails w/:
$pydoc mocktest
Traceback (most recent call last):
File "/opt/local/bin/pydoc", line 5, in
pydoc.cli()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 2374, in cli
help.help(arg)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1839, in help
elif request: doc(request, 'Help on %s:')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1578, in doc
pager(render_doc(thing, title, forceload))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1573, in render_doc
return title % desc + '\n\n' + text.document(object, name)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 361, in document
if inspect.ismodule(object): return self.docmodule(args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1153, in docmodule
contents.append(self.docother(value, key, name, maxlen=70))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1359, in docother
repr = self.repr(object)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/repr.py", line 24, in repr
return self.repr1(x, self.maxlevel)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py", line 1008, in repr1
return cram(stripid(repr(x)), self.maxother)
File "./mocktest/matchers/base.py", line 48, in repr
return self.desc()
File "./mocktest/matchers/base.py", line 92, in matches
raise RuntimeError("SplatMatcher instance used without prefixing with '
'")
RuntimeError: SplatMatcher instance used without prefixing with '*'

This is from eaa2fa8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions