Markus Fuchs <m.fuchs@fplusp.com>


Found
r862923

r862923 | djames | 2007-01-01 00:21:41 +0000 (Mon, 01 Jan 2007)

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.