Commit d82fec0e authored by Jim Fulton's avatar Jim Fulton

Fixed a bad hack to avoid spurious test failures due to time zone

differences.
parent d0d5bc25
...@@ -540,7 +540,7 @@ Check to make sure the cache analysis scripts work. ...@@ -540,7 +540,7 @@ Check to make sure the cache analysis scripts work.
>>> def ctime(t): >>> def ctime(t):
... return time.asctime(time.gmtime(t-3600*4)) ... return time.asctime(time.gmtime(t-3600*4))
>>> ZEO.scripts.cache_stats.ctime = ctime >>> ZEO.scripts.cache_stats.ctime = ctime
>>> ZEO.scripts.cache_stats.simul = ctime >>> ZEO.scripts.cache_simul.ctime = ctime
############################################################ ############################################################
Stats Stats
...@@ -1022,7 +1022,7 @@ Cleanup: ...@@ -1022,7 +1022,7 @@ Cleanup:
>>> del os.environ["ZEO_CACHE_TRACE"] >>> del os.environ["ZEO_CACHE_TRACE"]
>>> time.time = timetime >>> time.time = timetime
>>> ZEO.scripts.cache_stats.ctime = time.ctime >>> ZEO.scripts.cache_stats.ctime = time.ctime
>>> ZEO.scripts.cache_stats.simul = time.ctime >>> ZEO.scripts.cache_simul.ctime = time.ctime
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment