[Jython-checkins] jython: Skip test_args_error() until Java implementation

jeff.allen jython-checkins at python.org
Fri Mar 22 23:59:30 CET 2013


http://hg.python.org/jython/rev/72cfa7952565
changeset:   7103:72cfa7952565
user:        Jeff Allen <ja...py at farowl.co.uk>
date:        Thu Mar 21 22:59:56 2013 +0000
summary:
  Skip test_args_error() until Java implementation
The test expects the class name not __init__ to appear in the error message when the
number or arguments is wrong. Defer this issue until there is a Java implementation,
as the behaviour is a consequence of implementation in Python.

files:
  Lib/test/test_io.py |  9 ++++++---
  1 files changed, 6 insertions(+), 3 deletions(-)


diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -1043,7 +1043,8 @@
         support.gc_collect()
         self.assertTrue(wr() is None, wr)
 
-    @unittest.skipIf(support.is_jython, "FIXME: Jython does not mention type")
+    @unittest.skipIf(support.is_jython, "FIXME: in the Java version with ArgParser")
+    # When implemented in Python, the error message is about __init__, even on CPython
     def test_args_error(self):
         # Issue #17275
         with self.assertRaisesRegexp(TypeError, "BufferedReader"):
@@ -1344,7 +1345,8 @@
         with self.open(support.TESTFN, "rb") as f:
             self.assertEqual(f.read(), b"123xxx")
 
-    @unittest.skipIf(support.is_jython, "FIXME: Jython does not mention type")
+    @unittest.skipIf(support.is_jython, "FIXME: in the Java version with ArgParser")
+    # When implemented in Python, the error message is about __init__, even on CPython
     def test_args_error(self):
         # Issue #17275
         with self.assertRaisesRegexp(TypeError, "BufferedWriter"):
@@ -1726,7 +1728,8 @@
         CBufferedReaderTest.test_garbage_collection(self)
         CBufferedWriterTest.test_garbage_collection(self)
 
-    @unittest.skipIf(support.is_jython, "FIXME: Jython does not mention type")
+    @unittest.skipIf(support.is_jython, "FIXME: in the Java version with ArgParser")
+    # When implemented in Python, the error message is about __init__, even on CPython
     def test_args_error(self):
         # Issue #17275
         with self.assertRaisesRegexp(TypeError, "BufferedRandom"):

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


More information about the Jython-checkins mailing list