[Python-checkins] r82199 - sandbox/branches/py3k-datetime/test_datetime.py

alexander.belopolsky python-checkins at python.org
Thu Jun 24 17:20:54 CEST 2010


Author: alexander.belopolsky
Date: Thu Jun 24 17:20:54 2010
New Revision: 82199

Log:
Merged r82185 "Test future pickle protocols."

Modified:
   sandbox/branches/py3k-datetime/test_datetime.py

Modified: sandbox/branches/py3k-datetime/test_datetime.py
==============================================================================
--- sandbox/branches/py3k-datetime/test_datetime.py	(original)
+++ sandbox/branches/py3k-datetime/test_datetime.py	Thu Jun 24 17:20:54 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