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
935be033
Commit
935be033
authored
Jun 07, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix subprocess-based functest to run correctly under buildout.
parent
d5f69194
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/ZODB/tests/testSerialize.py
src/ZODB/tests/testSerialize.py
+6
-2
No files found.
src/ZODB/tests/testSerialize.py
View file @
935be033
...
@@ -136,11 +136,15 @@ class SerializerFunctestCase(unittest.TestCase):
...
@@ -136,11 +136,15 @@ class SerializerFunctestCase(unittest.TestCase):
prep_args
=
[
sys
.
executable
,
'-c'
,
prep_args
=
[
sys
.
executable
,
'-c'
,
'from ZODB.tests.testSerialize import _functest_prep; '
'from ZODB.tests.testSerialize import _functest_prep; '
'_functest_prep("%s")'
%
fqn
]
'_functest_prep("%s")'
%
fqn
]
subprocess
.
check_call
(
prep_args
)
# buildout doesn't arrange for the sys.path to be exported,
# so force it ourselves
environ
=
os
.
environ
.
copy
()
environ
[
'PYTHONPATH'
]
=
':'
.
join
(
sys
.
path
)
subprocess
.
check_call
(
prep_args
,
env
=
environ
)
load_args
=
[
sys
.
executable
,
'-c'
,
load_args
=
[
sys
.
executable
,
'-c'
,
'from ZODB.tests.testSerialize import _functest_load; '
'from ZODB.tests.testSerialize import _functest_load; '
'_functest_load("%s")'
%
fqn
]
'_functest_load("%s")'
%
fqn
]
subprocess
.
call
(
load_args
)
subprocess
.
call
(
load_args
,
env
=
environ
)
def
_working_failing_datetimes
():
def
_working_failing_datetimes
():
import
datetime
import
datetime
...
...
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