Commit 3c92ddb2 authored by Jim Fulton's avatar Jim Fulton

Run tests in temporary dirs that get cleaned up at end of test.

parent 7d69936e
......@@ -13,9 +13,13 @@
##############################################################################
import unittest
from zope.testing import doctest
import ZODB.tests.util
def test_suite():
return unittest.TestSuite((
doctest.DocFileSuite('zconfig.txt'),
doctest.DocFileSuite(
'zconfig.txt',
setUp=ZODB.tests.util.setUp, tearDown=ZODB.tests.util.tearDown,
),
))
......@@ -18,6 +18,7 @@ $Id$
import unittest
import re
from zope.testing import doctest, renormalizing
import ZODB.tests.util
checker = renormalizing.RENormalizing([
(re.compile('[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]+'),
......@@ -27,5 +28,8 @@ checker = renormalizing.RENormalizing([
def test_suite():
return unittest.TestSuite((
doctest.DocFileSuite('referrers.txt', 'fstail.txt', checker=checker),
doctest.DocFileSuite(
'referrers.txt', 'fstail.txt',
setUp=ZODB.tests.util.setUp, tearDown=ZODB.tests.util.tearDown,
checker=checker),
))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment