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
Joshua
zodb
Commits
a444dc5f
Commit
a444dc5f
authored
May 16, 2009
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed timezone dependence of the ZEO pack test.
parent
eb444b8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/ZEO/scripts/zeopack.test
src/ZEO/scripts/zeopack.test
+4
-2
No files found.
src/ZEO/scripts/zeopack.test
View file @
a444dc5f
...
@@ -73,11 +73,13 @@ Options:
...
@@ -73,11 +73,13 @@ Options:
-U UNIX Deprecated: Used with the -S option, Unix-domain
-U UNIX Deprecated: Used with the -S option, Unix-domain
socket to connect to.
socket to connect to.
Since packing involved time, we'
d
better
have
our
way
with
it
:
Since packing involves time, we'
d
better
have
our
way
with
it
.
Replace
time
.
time
()
with
a
function
that
always
returns
the
same
value
.
The
value
is
timezone
dependent
.
>>>
import
time
>>>
import
time
>>>
time_orig
=
time
.
time
>>>
time_orig
=
time
.
time
>>>
time
.
time
=
lambda
:
1237906517.0
>>>
time
.
time
=
lambda
:
time
.
mktime
((
2009
,
3
,
24
,
10
,
55
,
17
,
1
,
83
,
-
1
))
>>>
sleep_orig
=
time
.
sleep
>>>
sleep_orig
=
time
.
sleep
>>>
def
sleep
(
t
)
:
>>>
def
sleep
(
t
)
:
...
print
'sleep(%r)'
%
t
...
print
'sleep(%r)'
%
t
...
...
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