Re: [PATCH] Improve svn_checksum_t bindings in SWIG
From: Peter Samuelson <peter_at_p12n.org>
Date: Tue, 11 Dec 2012 12:49:27 -0600
> > +LENGTH = svn.core.svn_checksum_size(svn.core.svn_checksum_create(svn.core.svn_checksum_md5))
> > + self.assertEqual(len(check_val)%LENGTH,0,"Length of digest does not match kind")
Is there a better way to get the expected length?
I know others have said not to hardcode a 32 here. But you're already
I mean, to extend this test to other checksum kinds would require
|
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.