test_ok2/_pytest
Guyzmo accd962c9f Fixed issue shadowing error when missing argument on teardown_method
When the method argument is missing on teardown_method, the traceback is
100% internal to pytest, which with default options get pruned. Then
that traceback is empty, leading to a new exception as a traceback shall
not be empty.

This PR fixes that issue by pushing back the last stack on the
traceback, when the stacktrace is empty after pruning. Then the output
is still pruned, but gives meaningful information with the item where it
failed on the stack.

* fixes issue #1604

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
2016-06-12 03:45:24 +02:00
..
_code [exception handling] Fix case the current working directory (CWD) gets deleted during testing. 2016-06-08 15:18:23 +02:00
assertion fix formatting utf-8 error explanation 2016-02-12 20:28:06 +01:00
vendored_packages Fix spelling: explicitely --> explicitly 2015-12-01 01:41:47 -08:00
__init__.py finish up the version bump in __init__ i forgot 2016-06-01 08:18:10 +02:00
_argcomplete.py Remove code related to support python <= 2.5 2015-12-16 16:16:22 -02:00
_pluggy.py Create `_pytest.vendored_packages` and _pytest._pluggy 2015-09-07 13:01:54 -03:00
cacheprovider.py Use testscollected to make xdist happy 2016-03-11 14:48:17 +06:00
capture.py Fix trailing white-space 2015-12-25 17:51:55 -02:00
config.py Fix shell argument split in win32 2016-05-23 20:41:47 -03:00
doctest.py Don't mark empty doctest files as skipped, fixes #1578 2016-06-01 19:19:14 +01:00
genscript.py revert setuptools_scm addition introduced with f22d14b105 2015-09-17 12:58:04 +02:00
helpconfig.py Show known environment variables in py.test --help 2015-09-28 18:34:16 -03:00
hookspec.py doc: fix argument order for pytest_load_initial_conftests 2016-03-12 17:35:27 +01:00
impl - enhance ordering of tests using parametrized resources 2012-08-01 09:07:32 +02:00
junitxml.py Fixes Issue 1549 2016-05-05 11:29:05 -07:00
main.py Fixed issue shadowing error when missing argument on teardown_method 2016-06-12 03:45:24 +02:00
mark.py Always lstrip() keyword expression 2016-04-01 13:10:05 -04:00
monkeypatch.py monkeypatch: unnest handling code 2016-01-24 12:28:14 +01:00
nose.py adapt to pluggy naming, rename pytest.hookspec_opts to pytest.hookspec,s ame with hookimpl_opts 2015-05-06 10:08:08 +02:00
pastebin.py Fix pastebin when captured output contains non-ascii characters 2015-12-03 20:07:18 -02:00
pdb.py Merge branch 'master' into 'features' 2016-01-22 18:32:45 -02:00
pytester.py Moved py.code code over to py.test 2016-01-25 23:18:04 -02:00
python.py Change _showfixtures_main to loop over fixturedefs 2016-05-31 11:47:16 +01:00
recwarn.py Moved py.code code over to py.test 2016-01-25 23:18:04 -02:00
resultlog.py Use os.path.isdir instead of os.path.exists 2015-06-17 08:08:03 -03:00
runner.py Add test when using native strings with non-ascii chars 2016-03-05 19:34:15 -03:00
skipping.py issue 1496 - xfail with condition keyword 2016-04-19 18:12:37 +01:00
standalonetemplate.py setuptools not present issue deprecating gentest 2015-07-25 13:50:40 +02:00
terminal.py Display collect progress only when in a terminal 2016-02-20 14:38:30 -02:00
tmpdir.py Make tmpdir resiliant to user ids that do not exist 2015-09-18 21:26:19 -04:00
unittest.py Moved py.code code over to py.test 2016-01-25 23:18:04 -02:00