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
Kirill Smelkov
ZODB
Commits
acd73b1a
Commit
acd73b1a
authored
May 17, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a tempdir for the 'testfsoids' database.
Prevent contention when parallel tests are running under tox.
parent
64376e9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/ZODB/tests/testfsoids.py
src/ZODB/tests/testfsoids.py
+9
-3
No files found.
src/ZODB/tests/testfsoids.py
View file @
acd73b1a
...
@@ -167,11 +167,15 @@ Clean up.
...
@@ -167,11 +167,15 @@ Clean up.
>>> st.cleanup() # remove .fs, .index, etc
>>> st.cleanup() # remove .fs, .index, etc
"""
"""
import
re
import
doctest
import
doctest
import
ZODB.tests.util
import
re
from
zope.testing
import
renormalizing
from
zope.testing
import
renormalizing
from
.util
import
checker
as
util_checker
from
.util
import
setUp
from
.util
import
tearDown
checker
=
renormalizing
.
RENormalizing
([
checker
=
renormalizing
.
RENormalizing
([
# Normalizing this makes diffs easier to read
# Normalizing this makes diffs easier to read
(
re
.
compile
(
r'\btid 0x[0-9a-f]+\b'
),
'tid 0x...'
),
(
re
.
compile
(
r'\btid 0x[0-9a-f]+\b'
),
'tid 0x...'
),
...
@@ -191,5 +195,7 @@ checker = renormalizing.RENormalizing([
...
@@ -191,5 +195,7 @@ checker = renormalizing.RENormalizing([
def
test_suite
():
def
test_suite
():
return
doctest
.
DocTestSuite
(
checker
=
ZODB
.
tests
.
util
.
checker
+
checker
,
return
doctest
.
DocTestSuite
(
setUp
=
setUp
,
tearDown
=
tearDown
,
checker
=
util_checker
+
checker
,
optionflags
=
doctest
.
REPORT_NDIFF
)
optionflags
=
doctest
.
REPORT_NDIFF
)
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