[Epydoc-commits] SF.net SVN: epydoc: [1680] trunk/epydoc/src/epydoc/test/apidoc.doctest
Brought to you by:
edloper
From: <ed...@us...> - 2008-01-29 17:29:26
|
Revision: 1680 http://epydoc.svn.sourceforge.net/epydoc/?rev=1680&view=rev Author: edloper Date: 2008-01-29 09:28:22 -0800 (Tue, 29 Jan 2008) Log Message: ----------- - Updated doctests for APIDoc Modified Paths: -------------- trunk/epydoc/src/epydoc/test/apidoc.doctest Modified: trunk/epydoc/src/epydoc/test/apidoc.doctest =================================================================== --- trunk/epydoc/src/epydoc/test/apidoc.doctest 2008-01-29 17:28:03 UTC (rev 1679) +++ trunk/epydoc/src/epydoc/test/apidoc.doctest 2008-01-29 17:28:22 UTC (rev 1680) @@ -7,6 +7,8 @@ Python program is encoded using a graph of `APIDoc` objects, each of which encodes information about a single Python variable or value. + >>> import epydoc; epydoc.DEBUG = True + >>> from epydoc.apidoc import * >>> from epydoc.test.util import print_warnings @@ -158,12 +160,15 @@ >>> DottedName() Traceback (most recent call last): InvalidDottedName: Empty DottedName - >>> DottedName('1+2') + >>> DottedName('1+2', strict=True) Traceback (most recent call last): InvalidDottedName: Bad identifier '1+2' >>> DottedName({}) Traceback (most recent call last): TypeError: Bad identifier {}: expected DottedName or str + >>> DottedName('1+2', strict=False) + Identifier '1+2' looks suspicious; using it anyway. + DottedName('1+2') The one exception is that '??' is treated as if it were a valid python identifier: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |