Skip to content

Commit e0ab797

Browse files
committed
Use IGNORE_EXCEPTION_DETAIL instead of gross hack
1 parent f6adae2 commit e0ab797

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

couchdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ def delete(self, doc):
533533
>>> doc2 = db['johndoe']
534534
>>> doc2['age'] = 42
535535
>>> db['johndoe'] = doc2
536-
>>> db.delete(doc)
536+
>>> db.delete(doc) # doctest: +IGNORE_EXCEPTION_DETAIL
537537
Traceback (most recent call last):
538538
...
539539
ResourceConflict: (u'conflict', u'Document update conflict.')

couchdb/tests/testutil.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ def check_output(self, want, got, optionflags):
1818
if sys.version_info[0] > 2:
1919
want = re.sub("u'(.*?)'", "'\\1'", want)
2020
want = re.sub('u"(.*?)"', '"\\1"', want)
21-
want = want.replace('ResourceConflict:',
22-
'couchdb.http.ResourceConflict:')
2321
return doctest.OutputChecker.check_output(self, want, got, optionflags)
2422

2523
def doctest_suite(mod):

0 commit comments

Comments
 (0)