author | Julien Cristau <julien.cristau@logilab.fr> |
Fri, 31 Jul 2015 15:17:43 +0200 | |
changeset 10562 | 0c492a2720f1 |
parent 10561 | 5765cd3c94c7 |
child 10563 | 834284af988f |
child 10571 | 2cd8933fd875 |
--- a/devtools/testlib.py Wed Jul 29 10:51:52 2015 +0200 +++ b/devtools/testlib.py Fri Jul 31 15:17:43 2015 +0200 @@ -1018,7 +1018,8 @@ def assertDocTestFile(self, testfile): # doctest returns tuple (failure_count, test_count) - result = self.shell().process_script(testfile) + with self.admin_access.shell() as mih: + result = mih.process_script(testfile) if result[0] and result[1]: raise self.failureException("doctest file '%s' failed" % testfile)