Author: danielsh
Date: Tue Dec 11 23:21:45 2012
New Revision: 1420481

URL: http://svn.apache.org/viewvc?rev=1420481&view=rev
Log:
* subversion/bindings/swig/tests/checksum.py:
  (ChecksumTestCases.test_checksum): Just hardcode the length of an md5
     checksum.  See:

From: Peter Samuelson
Subject: Re: [PATCH] Improve svn_checksum_t bindings in SWIG
To: Daniel Shahaf
Cc: Shivani Poddar, dev@, Ben Reser
Date: Tue, 11 Dec 2012 12:49:27 -0600
Message-ID: <[email protected]>

Modified:
    subversion/trunk/subversion/bindings/swig/python/tests/checksum.py

Modified: subversion/trunk/subversion/bindings/swig/python/tests/checksum.py
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/python/tests/checksum.py?rev=1420481&r1=1420480&r2=1420481&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/python/tests/checksum.py 
(original)
+++ subversion/trunk/subversion/bindings/swig/python/tests/checksum.py Tue Dec 
11 23:21:45 2012
@@ -25,12 +25,10 @@ class ChecksumTestCases(unittest.TestCas
     def test_checksum(self):
         # Checking primarily the return type for the svn_checksum_create
         # function
-        val = svn.core.svn_checksum_create(svn.core.svn_checksum_md5)
+        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)
-        expected_length = svn.core.svn_checksum_size(
-                            svn.core.svn_checksum_create(
-                              svn.core.svn_checksum_md5))
-        
+
         self.assertTrue(isinstance(check_val, str),
                               "Type of digest not string")
         self.assertEqual(len(check_val), 2*expected_length,


Reply via email to