[Python-Dev] [Python-checkins] cpython: Issue #19209: fix structseq test (original) (raw)
Victor Stinner victor.stinner at gmail.com
Sat Oct 12 03:16:36 CEST 2013
- Previous message: [Python-Dev] [Python-checkins] cpython: Issue #19209: fix structseq test
- Next message: [Python-Dev] bugs.python.org not reachable in IPv6?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2013/10/12 Nick Coghlan <ncoghlan at gmail.com>:
summary: Issue #19209: fix structseq test
diff --git a/Lib/test/teststructseq.py b/Lib/test/teststructseq.py --- a/Lib/test/teststructseq.py +++ b/Lib/test/teststructseq.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 + ".statresult")) + self.assertTrue(rep.startswith("os.statresult")) 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
- Previous message: [Python-Dev] [Python-checkins] cpython: Issue #19209: fix structseq test
- Next message: [Python-Dev] bugs.python.org not reachable in IPv6?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]