2013/10/12 Nick Coghlan <ncogh...@gmail.com>: >> summary: >> Issue #19209: fix structseq test >> >> diff --git a/Lib/test/test_structseq.py b/Lib/test/test_structseq.py >> --- a/Lib/test/test_structseq.py >> +++ b/Lib/test/test_structseq.py >> @@ -38,7 +38,7 @@ >> # os.stat() gives a complicated struct sequence. >> st = os.stat(__file__) >> rep = repr(st) >> - self.assertTrue(rep.startswith(os.name + ".stat_result")) >> + self.assertTrue(rep.startswith("os.stat_result")) > > If stat results can be pickled, this suggests a possible issue with > unpickling pickles generated with older versions of Python.
This change should not break the backward compatibility. The os module was using a copyreg "hack" (is it the good name?) to replace "posix" with "os" when a os.stat or os.statvfs object was serialized with pickle. See the issue for information. Victor _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com