Commits

wlav  committed 95801d3

code cleanup

  • Participants
  • Parent commits 51089b1
  • Branches reflex-support

Comments (0)

Files changed (2)

File pypy/module/cppyy/converter.py

         self.name = name
 
     def convert_argument(self, space, w_obj, address, call_local):
-        raise OperationError(space.w_TypeError,
-                             space.wrap('no converter available for type "%s"' % self.name))
+        self._is_abstract(space)
 
 
 class BoolConverter(ffitypes.typeid(bool), TypeConverter):

File pypy/module/cppyy/test/test_fragile.py

             assert "fragile::D::overload()" in str(e)
             assert "TypeError: wrong number of arguments" in str(e)
             assert "fragile::D::overload(fragile::no_such_class*)" in str(e)
-            assert "TypeError: no converter available for type \"fragile::no_such_class*\"" in str(e)
+            assert "TypeError: no converter available for 'fragile::no_such_class*'" in str(e)
             assert "fragile::D::overload(char, int)" in str(e)
             assert "TypeError: expected string, got NoneType object" in str(e)
             assert "fragile::D::overload(int, fragile::no_such_class*)" in str(e)