[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Adding tests for some function in svn_checksum.h in SWIG bindings for python

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 19 Mar 2013 12:28:20 +0000

Shivani Poddar <shivani.poddar92_at_gmail.com> writes:

> Index: subversion/bindings/swig/python/tests/checksum.py
> ===================================================================
> --- subversion/bindings/swig/python/tests/checksum.py (revision 1448005)
> +++ subversion/bindings/swig/python/tests/checksum.py (working copy)
> @@ -28,14 +28,50 @@
> kind, expected_length = svn.core.svn_checksum_md5, 128/8
> val = svn.core.svn_checksum_create(kind)
> check_val = svn.core.svn_checksum_to_cstring_display(val)
> -
> + rand_checksum = svn.core.svn_checksum_t()
> + rand_checksum.digest = 'd41d8cd98f00b204e9800998ecf8427e'
> + rand_checksum2 = svn.core.svn_checksum_t()
> + rand_checksum2.digest = '568554e2bf0fc50aa347777731081a80'

That looks odd. svn_checksum_t.digest is binary and you are setting it
to the string representation of the binary not the binary data itself.
What are you trying to do?

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2013-03-19 13:29:10 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.