[Python-checkins] r82185 - python/branches/py3k/Lib/test/test_datetime.py
alexander.belopolsky
python-checkins at python.org
Thu Jun 24 00:29:49 CEST 2010
Author: alexander.belopolsky
Date: Thu Jun 24 00:29:48 2010
New Revision: 82185
Log:
Test future pickle protocols. Thanks Antoine Pitrou for suggestion.
Modified:
python/branches/py3k/Lib/test/test_datetime.py
Modified: python/branches/py3k/Lib/test/test_datetime.py
==============================================================================
--- python/branches/py3k/Lib/test/test_datetime.py (original)
+++ python/branches/py3k/Lib/test/test_datetime.py Thu Jun 24 00:29:48 2010
@@ -19,8 +19,9 @@
from datetime import date, datetime
import time as _time
-pickle_choices = [(pickle, pickle, proto) for proto in range(4)]
-assert len(pickle_choices) == 4
+pickle_choices = [(pickle, pickle, proto)
+ for proto in range(pickle.HIGHEST_PROTOCOL + 1)]
+assert len(pickle_choices) == pickle.HIGHEST_PROTOCOL + 1
# An arbitrary collection of objects of non-datetime types, for testing
# mixed-type comparisons.
More information about the Python-checkins
mailing list