From user-return-3696-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Feb 25 09:58:42 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 44397 invoked from network); 25 Feb 2009 09:58:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Feb 2009 09:58:41 -0000 Received: (qmail 87183 invoked by uid 500); 25 Feb 2009 09:58:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 87155 invoked by uid 500); 25 Feb 2009 09:58:35 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 87144 invoked by uid 99); 25 Feb 2009 09:58:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Feb 2009 01:58:35 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cmlenz@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 25 Feb 2009 09:58:26 +0000 Received: (qmail invoked by alias); 25 Feb 2009 09:58:04 -0000 Received: from vpn.mediatis.de (EHLO [192.168.28.236]) [62.96.5.68] by mail.gmx.net (mp053) with SMTP; 25 Feb 2009 10:58:04 +0100 X-Authenticated: #2618757 X-Provags-ID: V01U2FsdGVkX1+BAE8h+ySByD55su6rU6ub3QAcgbEo7ifH88cT12 DYQtZCePAWUnU9 Message-Id: <1694DF4A-0FDE-481E-87A3-1B5CF47A26C6@gmx.de> From: Christopher Lenz To: user@couchdb.apache.org In-Reply-To: <5aaed53f0902241942o2d9d2718j7253691fb74d1aaf@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Some tests not working in couchdb-python Date: Wed, 25 Feb 2009 10:58:04 +0100 References: <5aaed53f0902241942o2d9d2718j7253691fb74d1aaf@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.54 X-Virus-Checked: Checked by ClamAV on apache.org On 25.02.2009, at 04:42, Jeff Hinrichs - DM&T wrote: > couchdb-python 0.5 > > File "/home/jlh/Projects/venvs/demo-couchdb/lib/python2.5/site- > packages/CouchDB-0.5-py2.5.egg/couchdb/client.py", > line 337, in couchdb.client.Database.delete > Failed example: > db.delete(doc) > Expected: > Traceback (most recent call last): > ... > PreconditionFailed: ('conflict', 'Document update conflict.') > Got: > Traceback (most recent call last): > File "/usr/lib/python2.5/doctest.py", line 1228, in __run > compileflags, 1) in test.globs > File "", line 1, in > > db.delete(doc) > File "/home/jlh/Projects/venvs/demo-couchdb/lib/python2.5/site- > packages/CouchDB-0.5-py2.5.egg/couchdb/client.py", > line 348, in delete > self.resource.delete(doc['_id'], rev=doc['_rev']) > File "/home/jlh/Projects/venvs/demo-couchdb/lib/python2.5/site- > packages/CouchDB-0.5-py2.5.egg/couchdb/client.py", > line 829, in delete > return self._request('DELETE', path, headers=headers, **params) > File "/home/jlh/Projects/venvs/demo-couchdb/lib/python2.5/site- > packages/CouchDB-0.5-py2.5.egg/couchdb/client.py", > line 886, in _request > raise ResourceConflict(error) > ResourceConflict: ('conflict', 'Document update conflict.') > > Need to replace PreconditionFailed with ResourceConflict Yeah, that one should have been fixed in trunk: It was caused by a change of conflict status codes in CouchDB trunk. Cheers, Chris -- Christopher Lenz cmlenz at gmx.de http://www.cmlenz.net/