Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
3c92ddb2
Commit
3c92ddb2
authored
Nov 14, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run tests in temporary dirs that get cleaned up at end of test.
parent
7d69936e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/ZODB/FileStorage/tests.py
src/ZODB/FileStorage/tests.py
+5
-1
src/ZODB/scripts/tests.py
src/ZODB/scripts/tests.py
+5
-1
No files found.
src/ZODB/FileStorage/tests.py
View file @
3c92ddb2
...
...
@@ -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
,
),
))
src/ZODB/scripts/tests.py
View file @
3c92ddb2
...
...
@@ -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
),
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment