This is still in Lib/test/string_tests.py: #EQ("A", "", "replace", "", "A") # That was the correct result; this is the result we actually get # now (for str, but not for unicode): #EQ("", "", "replace", "", "A") Is this going to be fixed? n
[Neal]
This is still in Lib/test/string_tests.py:
#EQ("A", "", "replace", "", "A") # That was the correct result; this is the result we actually get # now (for str, but not for unicode): #EQ("", "", "replace", "", "A")
Is this going to be fixed?
Done. I had to comment out that new test during the NFS sprint because the str and unicode implementations gave different results (a pre-existing bug discovered during the sprint). str.replace() was repaired later during the sprint, but the new test remained commented out.
participants (2)
-
Neal Norwitz
-
Tim Peters