summaryrefslogtreecommitdiff
path: root/testing/test_skipping.py
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-04-07 18:21:37 +0200
committerDaniel Hahler <git@thequod.de>2019-04-07 18:22:04 +0200
commitc70ecd49caf44322c0ebd3a5bd56bf555d006b8c (patch)
tree51849423391aa9c7c9f6743633e03eee1a774e37 /testing/test_skipping.py
parentb54943842363c261730b2fce8edbe92d1b9ba84a (diff)
downloadpytest-c70ecd49caf44322c0ebd3a5bd56bf555d006b8c.tar.gz
cleanup: move terminal summary code to terminal plugin
Fixes https://github.com/pytest-dev/pytest/issues/5067.
Diffstat (limited to 'testing/test_skipping.py')
-rw-r--r--testing/test_skipping.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/testing/test_skipping.py b/testing/test_skipping.py
index e5206a44e..cef0fe6ee 100644
--- a/testing/test_skipping.py
+++ b/testing/test_skipping.py
@@ -6,7 +6,6 @@ import sys
import pytest
from _pytest.runner import runtestprotocol
-from _pytest.skipping import folded_skips
from _pytest.skipping import MarkEvaluator
from _pytest.skipping import pytest_runtest_setup
@@ -749,40 +748,6 @@ def test_skipif_class(testdir):
result.stdout.fnmatch_lines(["*2 skipped*"])
-def test_skip_reasons_folding():
- path = "xyz"
- lineno = 3
- message = "justso"
- longrepr = (path, lineno, message)
-
- class X(object):
- pass
-
- ev1 = X()
- ev1.when = "execute"
- ev1.skipped = True
- ev1.longrepr = longrepr
-
- ev2 = X()
- ev2.when = "execute"
- ev2.longrepr = longrepr
- ev2.skipped = True
-
- # ev3 might be a collection report
- ev3 = X()
- ev3.when = "collect"
- ev3.longrepr = longrepr
- ev3.skipped = True
-
- values = folded_skips([ev1, ev2, ev3])
- assert len(values) == 1
- num, fspath, lineno, reason = values[0]
- assert num == 3
- assert fspath == path
- assert lineno == lineno
- assert reason == message
-
-
def test_skipped_reasons_functional(testdir):
testdir.makepyfile(
test_one="""