[Checkins] SVN: DateTime/trunk/s Tests pass on all py26, 27, 32 and 33
Hano Schlichting
cvs-admin at zope.org
Sat Feb 23 15:15:38 UTC 2013
Log message for revision 129714:
Tests pass on all py26,27,32 and 33
Changed:
U DateTime/trunk/setup.py
U DateTime/trunk/src/DateTime/tests/test_datetime.py
-=-
Modified: DateTime/trunk/setup.py
===================================================================
--- DateTime/trunk/setup.py 2013-02-23 15:11:22 UTC (rev 129713)
+++ DateTime/trunk/setup.py 2013-02-23 15:15:38 UTC (rev 129714)
@@ -37,9 +37,13 @@
"License :: OSI Approved :: Zope Public License",
"Operating System :: OS Independent",
"Programming Language :: Python",
+ "Programming Language :: Python :: 2",
"Programming Language :: Python :: 2 :: Only",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.2",
+ "Programming Language :: Python :: 3.3",
"Programming Language :: Python :: Implementation :: CPython",
],
install_requires=[
Modified: DateTime/trunk/src/DateTime/tests/test_datetime.py
===================================================================
--- DateTime/trunk/src/DateTime/tests/test_datetime.py 2013-02-23 15:11:22 UTC (rev 129713)
+++ DateTime/trunk/src/DateTime/tests/test_datetime.py 2013-02-23 15:15:38 UTC (rev 129714)
@@ -27,8 +27,10 @@
if sys.version_info > (3, ):
import pickle
unicode = str
+ PY3K = True
else:
import cPickle as pickle
+ PY3K = False
try:
__file__
@@ -251,6 +253,8 @@
'\x1bM\xd2\x07U\x08_nearsecq\x1cG\x00\x00\x00\x00\x00\x00\x00'
'\x00U\x07_pmhourq\x1dK\x08U\n_dayoffsetq\x1eK\x04U\x04timeq'
'\x1fG?\xd5UUUV\x00\x00ub.')
+ if PY3K:
+ data = data.encode('latin-1')
new = pickle.loads(data)
for key in DateTime.__slots__:
self.assertEqual(getattr(dt, key), getattr(new, key))
@@ -268,6 +272,8 @@
'\x04_dayq\x19K\x02U\x05_yearq\x1aM\xd2\x07U\x08_nearsecq'
'\x1bG\x00\x00\x00\x00\x00\x00\x00\x00U\x07_pmhourq\x1cK\x08U'
'\n_dayoffsetq\x1dK\x04U\x04timeq\x1eG?\xd5UUUV\x00\x00ub.')
+ if PY3K:
+ data = data.encode('latin-1')
new = pickle.loads(data)
for key in DateTime.__slots__:
self.assertEqual(getattr(dt, key), getattr(new, key))
More information about the checkins
mailing list