Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
557e4b40
Commit
557e4b40
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
8be25c87
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 @
557e4b40
...
...
@@ -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 @
557e4b40
...
...
@@ -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