On 12 Oct 2013 09:42, "christian.heimes" <python-check...@python.org> wrote:
>
> http://hg.python.org/cpython/rev/89e405e6a7a9
> changeset:   86218:89e405e6a7a9
> parent:      86216:29c4a6a11e76
> user:        Christian Heimes <christ...@cheimes.de>
> date:        Sat Oct 12 01:38:52 2013 +0200
> summary:
>   Issue #19209: fix structseq test
>
> files:
>   Lib/test/test_structseq.py |  2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
>
> 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.

Cheers,
Nick.

>          self.assertIn("st_mode=", rep)
>          self.assertIn("st_ino=", rep)
>          self.assertIn("st_dev=", rep)
>
> --
> Repository URL: http://hg.python.org/cpython
>
> _______________________________________________
> Python-checkins mailing list
> python-check...@python.org
> https://mail.python.org/mailman/listinfo/python-checkins
>
_______________________________________________
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

Reply via email to