[Checkins] SVN: zope.app.apidoc/trunk/ Define ``__file__`` in doctests to make them pass under Python 2.4.
Hanno Schlichting
hannosch at hannosch.eu
Sun Sep 12 08:27:06 EDT 2010
Log message for revision 116306:
Define ``__file__`` in doctests to make them pass under Python 2.4.
Changed:
U zope.app.apidoc/trunk/CHANGES.txt
U zope.app.apidoc/trunk/src/zope/app/apidoc/tests.py
-=-
Modified: zope.app.apidoc/trunk/CHANGES.txt
===================================================================
--- zope.app.apidoc/trunk/CHANGES.txt 2010-09-12 12:12:23 UTC (rev 116305)
+++ zope.app.apidoc/trunk/CHANGES.txt 2010-09-12 12:27:05 UTC (rev 116306)
@@ -5,9 +5,8 @@
3.7.5 (unreleased)
------------------
-- Nothing changed yet.
+- Define ``__file__`` in doctests to make them pass under Python 2.4.
-
3.7.4 (2010-09-01)
------------------
Modified: zope.app.apidoc/trunk/src/zope/app/apidoc/tests.py
===================================================================
--- zope.app.apidoc/trunk/src/zope/app/apidoc/tests.py 2010-09-12 12:12:23 UTC (rev 116305)
+++ zope.app.apidoc/trunk/src/zope/app/apidoc/tests.py 2010-09-12 12:27:05 UTC (rev 116306)
@@ -83,7 +83,8 @@
doctest.DocFileSuite('presentation.txt',
setUp=zope.component.testing.setUp,
tearDown=zope.component.testing.tearDown,
- optionflags=doctest.NORMALIZE_WHITESPACE),
+ optionflags=doctest.NORMALIZE_WHITESPACE,
+ globs={'__file__': __file__}),
doctest.DocFileSuite('utilities.txt',
setUp=setUp,
tearDown=placelesssetup.tearDown,
More information about the checkins
mailing list