From 0d7af592c0f669742caaed48064b35658b4603a6 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 9 Dec 2013 08:14:39 +0100 Subject: [PATCH] speed up a test --- testing/test_core.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/testing/test_core.py b/testing/test_core.py index edc573107..716c2f8bb 100644 --- a/testing/test_core.py +++ b/testing/test_core.py @@ -340,10 +340,8 @@ class TestPytestPluginInteractions: assert hello == "world" assert 'hello' in py.test.__all__ """) - result = testdir.runpytest(p) - result.stdout.fnmatch_lines([ - "*1 passed*" - ]) + reprec = testdir.inline_run(p) + reprec.assertoutcome(passed=1) def test_do_option_postinitialize(self, testdir): config = testdir.parseconfigure()