From 1b5aa2868de5d7ab3ec99c0c4c11836dde85f9cf Mon Sep 17 00:00:00 2001 From: Michael Aquilina Date: Thu, 1 Oct 2015 21:56:15 +0100 Subject: [PATCH] Check no reason displayed if none specified --- testing/test_skipping.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/testing/test_skipping.py b/testing/test_skipping.py index d7ceb5cfc..c7a0516b4 100644 --- a/testing/test_skipping.py +++ b/testing/test_skipping.py @@ -416,8 +416,11 @@ class TestSkip(object): def test_foo(): pass """) - rec = testdir.inline_run() - rec.assertoutcome(skipped=1) + result = testdir.runpytest('-rs') + result.stdout.fnmatch_lines([ + "*Skipped instance*", + "*1 skipped*", + ]) def test_skip_with_reason(self, testdir): testdir.makepyfile("""