https://github.com/apache/subversion/commit/bf72420e86059a894fa3aacbbd6e3bee9286e46e


Index: subversion/bindings/swig/include/svn_types.swg
--- subversion/bindings/swig/include/svn_types.swg.orig
+++ subversion/bindings/swig/include/svn_types.swg
@@ -601,7 +601,7 @@ svn_ ## TYPE ## _swig_rb_closed(VALUE self)
 %typemap(in, noblock=1) apr_pool_t * {
   /* Verify that the user supplied a valid pool */
   if ($input != Py_None && $input != _global_py_pool) {
-    SWIG_Python_TypeError(SWIG_TypePrettyName($descriptor), $input);
+    SWIG_Error(SWIG_TypeError, "a '$type' is expected");
     SWIG_arg_fail($svn_argnum);
     SWIG_fail;
   }
