[py-svn] r7124 - in py/dist/py/test: . report/text
hpk at codespeak.net
hpk at codespeak.net
Tue Oct 26 00:15:55 CEST 2004
Author: hpk
Date: Tue Oct 26 00:15:54 2004
New Revision: 7124
Modified:
py/dist/py/test/defaultconfig.py
py/dist/py/test/report/text/reporter.py
Log:
commented out usage of --pdb because that really doesn't
work well with the new distributed style of testing.
Some more infrastructure needs to be put in place
to make interactively working with a remote process
nice enough. which is a good idea anyway.
Modified: py/dist/py/test/defaultconfig.py
==============================================================================
--- py/dist/py/test/defaultconfig.py (original)
+++ py/dist/py/test/defaultconfig.py Tue Oct 26 00:15:54 2004
@@ -26,9 +26,9 @@
Option('', '--nomagic',
action="store_true", dest="nomagic", default=False,
help="don't invoke magic to e.g. beautify failing/error statements."),
- Option('', '--pdb',
- action="store_true", dest="usepdb", default=False,
- help="Start pdb (the Python debugger) on errors."),
+ #Option('', '--pdb',
+ # action="store_true", dest="usepdb", default=False,
+ # help="Start pdb (the Python debugger) on errors."),
Option('', '--collectonly',
action="store_true", dest="collectonly", default=False,
help="only collect tests, don't execute them. "),
Modified: py/dist/py/test/report/text/reporter.py
==============================================================================
--- py/dist/py/test/report/text/reporter.py (original)
+++ py/dist/py/test/report/text/reporter.py Tue Oct 26 00:15:54 2004
@@ -133,15 +133,15 @@
self.out.rewrite("%.3f %-2s %-20s %s%s" % (
elapsed, resultstring, location, str(item.extpy.modpath), writeinfo
))
- if self.option.usepdb:
- if (issubclass(restype, Collector.Error) or
- issubclass(restype, Item.Failed)):
- import pdb
- self.out.rewrite(
- '\n%s: %s\n'
- % (result.excinfo[1].__class__.__name__,
- result.excinfo[1]))
- pdb.post_mortem(result.excinfo[2])
+ #if self.option.usepdb:
+ # if (issubclass(restype, Collector.Error) or
+ # issubclass(restype, Item.Failed)):
+ # import pdb
+ # self.out.rewrite(
+ # '\n%s: %s\n'
+ # % (result.excinfo[1].__class__.__name__,
+ # result.excinfo[1]))
+ # pdb.post_mortem(result.excinfo[2])
def report_collect_error(self, error):
restype, c = self.processresult(error)
More information about the pytest-commit
mailing list