Markus Fuchs <m.fuchs@fplusp.com>


Found
r862923

r862923 | djames | 2006-12-31 18:21:41 -0600 (Sun, 31 Dec 2006)

Update Python bindings to correctly treat "None" as an empty stream.
Add tests to verify this fix.

Found by: Markus Fuchs <m.fuchs@fplusp.com>
          Shun-ichi GOTO <shunichi.goto@gmail.com>

[ In subversion/bindings/swig/python ]

  * libsvn_swig_py/swigutil_py.c
    (read_handler_pyio): If py_io is None, return a short read
    to indicate an empty stream.
    (write_handler_pyio): If py_io is None, ignore the input.

  * tests/repository.py
    (test_dump_fs2): Update test to reflect that if you pass in
    None as a stream, it will be treated as an empty stream.

  * tests/ra.py
    (test_get_file): Add test for this function.