[Checkins] SVN: zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/s Apply bugfix and change setup.py version to a -rXXXXXX number for referencing
Aaron Lehmann
aaron at zope.com
Mon Jul 20 09:29:32 EDT 2009
Log message for revision 102038:
Apply bugfix and change setup.py version to a -rXXXXXX number for referencing
in buildouts.
Changed:
U zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/setup.py
U zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/testing.py
A zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/testing.txt
U zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/tests.py
-=-
Modified: zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/setup.py
===================================================================
--- zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/setup.py 2009-07-20 13:06:48 UTC (rev 102037)
+++ zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/setup.py 2009-07-20 13:29:31 UTC (rev 102038)
@@ -72,7 +72,7 @@
setup(
name='zc.async',
- version='1.4.2a4',
+ version='1.4.2dev-r89968',
namespace_packages=['zc'],
packages=find_packages('src'),
package_dir={'':'src'},
Modified: zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/testing.py
===================================================================
--- zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/testing.py 2009-07-20 13:06:48 UTC (rev 102037)
+++ zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/testing.py 2009-07-20 13:29:31 UTC (rev 102038)
@@ -37,11 +37,11 @@
class _datetime(old_datetime):
@classmethod
- def now(klass, tzinfo=None):
- if tzinfo is None:
+ def now(klass, tz=None):
+ if tz is None:
return _now.replace(tzinfo=None)
else:
- return _now.astimezone(tzinfo)
+ return _now.astimezone(tz)
@classmethod
def utcnow(klass):
return _now.replace(tzinfo=None)
Copied: zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/testing.txt (from rev 101954, zc.async/trunk/src/zc/async/testing.txt)
===================================================================
--- zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/testing.txt (rev 0)
+++ zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/testing.txt 2009-07-20 13:29:31 UTC (rev 102038)
@@ -0,0 +1,17 @@
+Testing Edge Cases
+==================
+
+
+_datetime Edge Case
+-------------------
+
+This tests that the _datetime class provided in the zc.asynt.testing module
+takes correctly named arguments to its now method.
+
+ >>> import zc.async.testing
+ >>> import datetime
+ >>> dt_now = datetime.datetime.now(tz=None)
+ >>> zc.async.testing.set_now(dt_now) #set the frozen now
+ >>> z_a_t_dt_now = zc.async.testing._datetime.now(tz=None)
+
+
Modified: zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/tests.py
===================================================================
--- zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/tests.py 2009-07-20 13:06:48 UTC (rev 102037)
+++ zc.async/branches/aaron-needs-to-use-r89968-with-a-bugfix/src/zc/async/tests.py 2009-07-20 13:29:31 UTC (rev 102038)
@@ -147,6 +147,7 @@
'README_2.txt',
'catastrophes.txt',
'ftesting.txt',
+ 'testing.txt',
'QUICKSTART_1_VIRTUALENV.txt',
setUp=modSetUp, tearDown=modTearDown,
optionflags=doctest.INTERPRET_FOOTNOTES,
More information about the Checkins
mailing list