Markus Fuchs <>


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 <>
          Shun-ichi GOTO <>

[ 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/
    (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/
    (test_get_file): Add test for this function.