git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dsdb python tests: convert 'except X, (tuple)' to 'except X as e'
[metze/samba/wip.git]
/
source4
/
dsdb
/
tests
/
python
/
ad_dc_medley_performance.py
diff --git
a/source4/dsdb/tests/python/ad_dc_medley_performance.py
b/source4/dsdb/tests/python/ad_dc_medley_performance.py
index 72655f70589e6fcd16addefc38d8959f7db5fbcd..3e8f87ce186f55385d75860cc8fa44a990e4c23e 100644
(file)
--- a/
source4/dsdb/tests/python/ad_dc_medley_performance.py
+++ b/
source4/dsdb/tests/python/ad_dc_medley_performance.py
@@
-216,7
+216,8
@@
class UserTests(samba.tests.TestCase):
self.ldb.search(dn,
scope=SCOPE_BASE,
attrs=['cn'])
- except LdbError as (num, msg):
+ except LdbError as e:
+ (num, msg) = e.args
if num != 32:
raise