From: Tim Peters Date: Thu, 1 Jun 2006 13:56:26 +0000 (+0000) Subject: Re-enable a new empty-string test added during the NFS sprint, X-Git-Tag: v2.5b1~306 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80a18f0f9c22e8f1cd7592b3ea0a2e6d3683169e;p=python Re-enable a new empty-string test added during the NFS sprint, but disabled then because str and unicode strings gave different results. The implementations were repaired later during the sprint, but the new test remained disabled. --- diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 8962c1f07a..aaa2dc20a9 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -494,12 +494,7 @@ class CommonTest(unittest.TestCase): # Operations on the empty string EQ("", "", "replace", "", "") - - #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") - + EQ("A", "", "replace", "", "A") EQ("", "", "replace", "A", "") EQ("", "", "replace", "A", "A") EQ("", "", "replace", "", "", 100)