speed up skipping

This commit is contained in:
holger krekel 2011-03-11 15:43:24 +01:00
parent 6aaaaa8e67
commit a7131dc911
4 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
Changes between 2.0.2 and 2.0.3.dev
----------------------------------------------
- speed up skips (by not doing a full traceback represenation
internally)
Changes between 2.0.1 and 2.0.2 Changes between 2.0.1 and 2.0.2
---------------------------------------------- ----------------------------------------------

View File

@ -153,7 +153,7 @@ def pytest_runtest_makereport(item, call):
longrepr = excinfo longrepr = excinfo
elif excinfo.errisinstance(py.test.skip.Exception): elif excinfo.errisinstance(py.test.skip.Exception):
outcome = "skipped" outcome = "skipped"
r = item._repr_failure_py(excinfo, "line").reprcrash r = excinfo._getreprcrash()
longrepr = (str(r.path), r.lineno, r.message) longrepr = (str(r.path), r.lineno, r.message)
else: else:
outcome = "failed" outcome = "failed"

View File

@ -1,7 +1,7 @@
""" """
unit and functional testing with Python. unit and functional testing with Python.
""" """
__version__ = '2.0.2' __version__ = '2.0.3.dev0'
__all__ = ['main'] __all__ = ['main']
from _pytest.core import main, UsageError, _preloadplugins from _pytest.core import main, UsageError, _preloadplugins

View File

@ -22,7 +22,7 @@ def main():
name='pytest', name='pytest',
description='py.test: simple powerful testing with Python', description='py.test: simple powerful testing with Python',
long_description = long_description, long_description = long_description,
version='2.0.2', version='2.0.3.dev0',
url='http://pytest.org', url='http://pytest.org',
license='MIT license', license='MIT license',
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'], platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],