[Jython-checkins] jython: Unskip tests for str.translate, update NEWS, ACKNOWLEDGMENTS.

frank.wierzbicki jython-checkins at python.org
Wed Feb 27 02:41:08 CET 2013


http://hg.python.org/jython/rev/599a7c4089d5
changeset:   7068:599a7c4089d5
user:        Frank Wierzbicki <fwierzbicki at gmail.com>
date:        Tue Feb 26 16:43:21 2013 -0800
summary:
  Unskip tests for str.translate, update NEWS, ACKNOWLEDGMENTS.
Thanks Christian Klein!

files:
  ACKNOWLEDGMENTS          |  1 +
  Lib/test/string_tests.py |  8 +++-----
  NEWS                     |  1 +
  3 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/ACKNOWLEDGMENTS b/ACKNOWLEDGMENTS
--- a/ACKNOWLEDGMENTS
+++ b/ACKNOWLEDGMENTS
@@ -100,6 +100,7 @@
     Julian Kennedy
     Arfrever Frehtes Taifersar Arahesis
     Andreas Stührk
+    Christian Klein
 
 Local Variables:
 mode: indented-text
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py
--- a/Lib/test/string_tests.py
+++ b/Lib/test/string_tests.py
@@ -1274,11 +1274,9 @@
         self.checkequal('Abc', 'abc', 'translate', table)
         self.checkequal('xyz', 'xyz', 'translate', table)
         self.checkequal('yz', 'xyz', 'translate', table, 'x')
-        #FIXME:
-        if not test_support.is_jython:
-            self.checkequal('yx', 'zyzzx', 'translate', None, 'z')
-            self.checkequal('zyzzx', 'zyzzx', 'translate', None, '')
-            self.checkequal('zyzzx', 'zyzzx', 'translate', None)
+        self.checkequal('yx', 'zyzzx', 'translate', None, 'z')
+        self.checkequal('zyzzx', 'zyzzx', 'translate', None, '')
+        self.checkequal('zyzzx', 'zyzzx', 'translate', None)
         self.checkraises(ValueError, 'xyz', 'translate', 'too short', 'strip')
         self.checkraises(ValueError, 'xyz', 'translate', 'too short')
 
diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@
 
 Jython 2.7b2
   Bugs Fixed
+    - [ 2020 ] str.translate should delete characters in the second arg when table is None
     - [ 1753 ] zlib doesn't call end() on compress and decompress
 
 Jython 2.7b1

-- 
Repository URL: http://hg.python.org/jython


More information about the Jython-checkins mailing list