[Epydoc-commits] SF.net SVN: epydoc: [1361] trunk/epydoc/src/epydoc/test/apidoc.doctest
Brought to you by:
edloper
|
From: <ed...@us...> - 2006-09-06 23:46:00
|
Revision: 1361
http://svn.sourceforge.net/epydoc/?rev=1361&view=rev
Author: edloper
Date: 2006-09-06 16:45:57 -0700 (Wed, 06 Sep 2006)
Log Message:
-----------
- Exception message for type errors in DottedName() params changed
Modified Paths:
--------------
trunk/epydoc/src/epydoc/test/apidoc.doctest
Modified: trunk/epydoc/src/epydoc/test/apidoc.doctest
===================================================================
--- trunk/epydoc/src/epydoc/test/apidoc.doctest 2006-09-06 23:45:27 UTC (rev 1360)
+++ trunk/epydoc/src/epydoc/test/apidoc.doctest 2006-09-06 23:45:57 UTC (rev 1361)
@@ -160,7 +160,7 @@
InvalidDottedName: Bad identifier '1+2'
>>> DottedName({})
Traceback (most recent call last):
- InvalidDottedName: Bad identifier {}
+ TypeError: Bad identifier {}: expected DottedName or str
The one exception is that '??' is treated as if it were a valid python
identifier:
@@ -216,7 +216,7 @@
The constructor does not accept positional arguments; and any keyword
argument that does not correspond to a valid attribute will generate a
-TypeError:
+TypeError (but only if epydoc.DEBUG is true):
>>> APIDoc('foo')
Traceback (most recent call last):
@@ -226,7 +226,7 @@
TypeError: APIDoc got unexpected arg 'foo'
Any assignment to an attribute that's not valid will also generate a
-TypeError:
+TypeError (but only if epydoc.DEBUG is true):
>>> api_doc = APIDoc(docstring='ds')
>>> api_doc.foo = 0
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|