Index: Lib/test/pickletester.py =================================================================== --- Lib/test/pickletester.py (revision 62662) +++ Lib/test/pickletester.py (working copy) @@ -10,7 +10,7 @@ # Tests that try a number of pickle protocols should have a # for proto in protocols: # kind of outer loop. -protocols = range(pickle.HIGHEST_PROTOCOL + 1) +protocols = list(range(pickle.HIGHEST_PROTOCOL + 1)) # Return True if opcode code appears in the pickle, else False.