Skip to content

Commit 9f73949

Browse files
committed
Fix remaining test failure for 0.10.x branches.
1 parent d8eacda commit 9f73949

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

couchdb/tests/client.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,14 @@ def test_doc_revs(self):
134134
self.assertTrue(self.db.compact())
135135
while self.db.info()['compact_running']:
136136
pass
137-
self.assertRaises(client.ServerError, self.db.get, 'foo', rev=old_rev)
137+
138+
# 0.10 responds with 404, 0.9 responds with 500, same content
139+
doc = 'fail'
140+
try:
141+
doc = self.db.get('foo', rev=old_rev)
142+
except client.ServerError:
143+
doc = None
144+
assert doc is None
138145

139146
def test_attachment_crud(self):
140147
doc = {'bar': 42}

0 commit comments

Comments
 (0)