[Checkins] SVN: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/ Update tests to work with Python 2.4 and 2.5.
Jim Fulton
jim at zope.com
Tue Jan 19 09:28:41 EST 2010
Log message for revision 108265:
Update tests to work with Python 2.4 and 2.5.
Changed:
U bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/decorator.test
U bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/index.txt
-=-
Modified: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/decorator.test
===================================================================
--- bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/decorator.test 2010-01-19 14:07:11 UTC (rev 108264)
+++ bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/decorator.test 2010-01-19 14:28:41 UTC (rev 108265)
@@ -866,8 +866,7 @@
check we don't match within path segment prefixes
-------------------------------------------------
- >>> @bobo.subroute('/events', scan=True)
- ... class Events:
+ >>> class Events:
...
... def __init__(self, request): pass
...
@@ -880,6 +879,8 @@
... self.id = id
... return self
+ >>> Events = bobo.subroute('/events', scan=True)(Events)
+
>>> call_resource(Events, '/eventswaaa')
>>> call_resource(Events, '/events/1')
BoboException:
Modified: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/index.txt
===================================================================
--- bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/index.txt 2010-01-19 14:07:11 UTC (rev 108264)
+++ bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/index.txt 2010-01-19 14:28:41 UTC (rev 108265)
@@ -580,7 +580,7 @@
.. -> src
>>> if sys.version_info < (2, 6):
- ... src = src.replace("\n at bobo.scan_class", "")
+ ... src = src.replace("@bobo.scan_class", "")
... src += "\nbobo.scan_class(Folder)\nbobo.scan_class(Document)"
>>> update_module('helloapp', src)
@@ -704,7 +704,7 @@
At least make sure the class def executes:
>>> if sys.version_info < (2, 6):
- ... src = src.replace("\n at bobo.subroute", "\n#bobo.subroute")
+ ... src = src.replace("@bobo.subroute", "\n#bobo.subroute")
>>> update_module('helloapp', src)
More information about the checkins
mailing list