[Checkins] SVN: zope.deprecation/trunk/src/zope/deprecation/tests.py Make the tests pass on Python 2.4.
Marius Gedminas
marius at pov.lt
Mon Oct 18 12:12:29 EDT 2010
Log message for revision 117727:
Make the tests pass on Python 2.4.
Changed:
U zope.deprecation/trunk/src/zope/deprecation/tests.py
-=-
Modified: zope.deprecation/trunk/src/zope/deprecation/tests.py
===================================================================
--- zope.deprecation/trunk/src/zope/deprecation/tests.py 2010-10-18 16:10:34 UTC (rev 117726)
+++ zope.deprecation/trunk/src/zope/deprecation/tests.py 2010-10-18 16:12:29 UTC (rev 117727)
@@ -103,12 +103,14 @@
checker = renormalizing.RENormalizing([
(re.compile('\\\\'), '/'), # convert Windows paths to Unix paths
])
+ testfile = os.path.join(os.path.dirname(__file__), 'README.txt')
return unittest.TestSuite((
doctest.DocFileSuite('README.txt',
setUp=setUp, tearDown=tearDown,
optionflags=doctest.ELLIPSIS,
checker=checker,
+ globs={'__file__': testfile}, # py2.4 compat
),
))
More information about the checkins
mailing list