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
----------------------------------------------

View File

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

View File

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

View File

@ -22,7 +22,7 @@ def main():
name='pytest',
description='py.test: simple powerful testing with Python',
long_description = long_description,
version='2.0.2',
version='2.0.3.dev0',
url='http://pytest.org',
license='MIT license',
platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'],
@ -67,4 +67,4 @@ def make_entry_points():
return {'console_scripts': l}
if __name__ == '__main__':
main()
main()