Test future pickle protocols. Thanks Antoine Pitrou for suggestion.

This commit is contained in:
Alexander Belopolsky 2010-06-23 22:29:48 +00:00
parent 1b7046b99e
commit 33b94c9fa9
1 changed files with 3 additions and 2 deletions

View File

@ -19,8 +19,9 @@ from datetime import timezone
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.