]> granicus.if.org Git - python/commitdiff
Re-enable a new empty-string test added during the NFS sprint,
authorTim Peters <tim.peters@gmail.com>
Thu, 1 Jun 2006 13:56:26 +0000 (13:56 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 1 Jun 2006 13:56:26 +0000 (13:56 +0000)
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.

Lib/test/string_tests.py

index 8962c1f07a7314b98559588176f657a8aeb4b800..aaa2dc20a92c79d98f1427648375f09fd92b462e 100644 (file)
@@ -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)