This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients benjamin.peterson, ezio.melotti, lemburg, pitrou, serhiy.storchaka, vstinner
Date 2015-03-29.07:02:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427612567.08.0.637724736927.issue23803@psf.upfronthosting.co.za>
In-reply-to
Content
Tests added in b923eeaf8162 exposed a bug in str.partition() and str.rpartition() in 3.4 on big-endian platforms. It should exist in 3.3 too. It likely was fixed in 3.5 in issue23573.

http://buildbot.python.org/all/builders/PPC64%20PowerLinux%203.4/builds/913/steps/test/logs/stdio
======================================================================
FAIL: test_partition (test.test_unicode.UnicodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.4.edelsohn-powerlinux-ppc64/build/Lib/test/test_unicode.py", line 383, in test_partition
    left + right, 'partition', delim)
  File "/home/shager/cpython-buildarea/3.4.edelsohn-powerlinux-ppc64/build/Lib/test/string_tests.py", line 63, in checkequal
    realresult
AssertionError: Tuples differ: ('bbbbbbbbbaaaaaaaaa', '', '') != ('', '𐌂', '\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00\x00')

First differing element 0:
bbbbbbbbbaaaaaaaaa


- ('bbbbbbbbbaaaaaaaaa', '', '')
+ ('', '𐌂', '\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00\x00')

======================================================================
FAIL: test_rpartition (test.test_unicode.UnicodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.4.edelsohn-powerlinux-ppc64/build/Lib/test/test_unicode.py", line 399, in test_rpartition
    left + right, 'rpartition', delim)
  File "/home/shager/cpython-buildarea/3.4.edelsohn-powerlinux-ppc64/build/Lib/test/string_tests.py", line 63, in checkequal
    realresult
AssertionError: Tuples differ: ('', '', 'bbbbbbbbbaaaaaaaaa') != ('\x00\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00', '𐌂', '')

First differing element 0:

bbbb

- ('', '', 'bbbbbbbbbaaaaaaaaa')
+ ('\x00\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00', '𐌂', '')

----------------------------------------------------------------------

'bbbbbbbbbaaaaaaaaa'.partition('\U00010302') returns ('', '𐌂', '\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00\x00')
'bbbbbbbbbaaaaaaaaa'.rpartition('\U00010302') returns ('\x00\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00\x00\x00b\x00', '𐌂', '')
History
Date User Action Args
2015-03-29 07:02:47serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, pitrou, vstinner, benjamin.peterson, ezio.melotti
2015-03-29 07:02:47serhiy.storchakasetmessageid: <1427612567.08.0.637724736927.issue23803@psf.upfronthosting.co.za>
2015-03-29 07:02:46serhiy.storchakalinkissue23803 messages
2015-03-29 07:02:46serhiy.storchakacreate