[py-svn] r37531 - py/trunk/py/test/rsession
guido at codespeak.net
guido at codespeak.net
Mon Jan 29 13:53:53 CET 2007
Author: guido
Date: Mon Jan 29 13:53:52 2007
New Revision: 37531
Modified:
py/trunk/py/test/rsession/rsession.py
Log:
Removing try/except to make debugging a little bit easier.
Modified: py/trunk/py/test/rsession/rsession.py
==============================================================================
--- py/trunk/py/test/rsession/rsession.py (original)
+++ py/trunk/py/test/rsession/rsession.py Mon Jan 29 13:53:52 2007
@@ -277,19 +277,9 @@
print >>sys.stderr, 'building documentation'
capture = py.io.OutErrCapture()
try:
- try:
- pkgdir = self.getpkgdir(self.config.args[0])
- apigen.build(pkgdir,
- DocStorageAccessor(self.docstorage))
- except AttributeError:
- import traceback
- exc, e, tb = sys.exc_info()
- print '%s - %s' % (exc, e)
- print ''.join(traceback.format_tb(tb))
- del tb
- print '-' * 79
- raise NotImplementedError("Provided script does not seem "
- "to contain build function")
+ pkgdir = self.getpkgdir(self.config.args[0])
+ apigen.build(pkgdir,
+ DocStorageAccessor(self.docstorage))
finally:
capture.reset()
@@ -330,3 +320,4 @@
return box_runner
return plain_runner
+
More information about the pytest-commit
mailing list