[Python-Dev] [Python-checkins] cpython: Issue #19209: fix structseq test (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Sat Oct 12 01:53:12 CEST 2013


On 12 Oct 2013 09:42, "christian.heimes" <python-checkins at python.org> wrote:

http://hg.python.org/cpython/rev/89e405e6a7a9 changeset: 86218:89e405e6a7a9 parent: 86216:29c4a6a11e76 user: Christian Heimes <christian at cheimes.de> date: Sat Oct 12 01:38:52 2013 +0200 summary: Issue #19209: fix structseq test files: Lib/test/teststructseq.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

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.

Cheers, Nick.

self.assertIn("stmode=", rep) self.assertIn("stino=", rep) self.assertIn("stdev=", rep)

-- Repository URL: http://hg.python.org/cpython


Python-checkins mailing list Python-checkins at python.org https://mail.python.org/mailman/listinfo/python-checkins -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20131012/1ee1aa67/attachment-0001.html>



More information about the Python-Dev mailing list