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

[PATCH] Fix test_lock in the Python bindings testsuite

From: Роман Донченко <DXDragon_at_yandex.ru>
Date: Sun, 05 Jul 2009 01:29:08 +0400

Hello,

So the last failing Python test, test_lock, turned out to do something
odd, namely add a lock with a null lock token. The SQLite schema doesn't
allow NULLs in the relevant column, which eventually makes the test fail.
I don't think tokenless locks are supposed to be allowed, so I blame the
test. The attached patch modifies the test so that it assigns a token to
the lock first.

I also took the liberty of making it lock a file instead of a directory.
libsvn_wc can lock a directory, but since Subversion is not really
supposed to do that, I figured we shouldn't test for it, either. Feel free
to yell at me if it actually makes sense to lock a directory and I'm
ruining everything. ;=]

[[[
Fix test_lock in the Python bindings testsuite.

* subversion/bindings/swig/python/tests/wc.py:
   (SubversionWorkingCopyTestCase.test_lock): assign the lock a token, and
lock /trunk/README.txt instead of /.
]]]

Generally yours,
Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2368023

Received on 2009-07-04 23:29:43 CEST

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