Kaydet (Commit) 33b94c9f authored tarafından Alexander Belopolsky's avatar Alexander Belopolsky

Test future pickle protocols. Thanks Antoine Pitrou for suggestion.

üst 1b7046b9
...@@ -19,8 +19,9 @@ from datetime import timezone ...@@ -19,8 +19,9 @@ from datetime import timezone
from datetime import date, datetime from datetime import date, datetime
import time as _time import time as _time
pickle_choices = [(pickle, pickle, proto) for proto in range(4)] pickle_choices = [(pickle, pickle, proto)
assert len(pickle_choices) == 4 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 # An arbitrary collection of objects of non-datetime types, for testing
# mixed-type comparisons. # mixed-type comparisons.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment