Checkout
Yasuhito Futatsuki
committed
on 23 Jan
On branch swig-py3: Fix Python exception handling in callback function

* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
(svn… Show more
On branch swig-py3: Fix Python exception handling in callback function

* subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c

(svn_swig_py_status_func2): Clear python exception if it caused in Python

 call back function. (To avoid crash in py3)

* subversion/bindings/swig/python/tests/wc.py

(SubversionWorkingCopyTestCase.test_status_editor): Remove an assertion

 from call back because it takes no effect, and check result after

 svn_wc_get_status_editor2() API call instead.

(SubversionWorkingCopyTestCase.test_status_editor_callback_exception):

 New test case for Python exception within svn_wc_status_func2 call back.

  

Patch by: Jun Omae <jun66j5 at gmail.com>

         (Tweaked by me.)

Show less