From 503addbf09441677539c1c77914a94ab394c502a Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 22 Aug 2012 21:20:18 +0200 Subject: [PATCH] correctly have the test for issue #[C179 actually fail --- testing/test_python.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/testing/test_python.py b/testing/test_python.py index 3e949865e..a34a74191 100644 --- a/testing/test_python.py +++ b/testing/test_python.py @@ -1668,12 +1668,16 @@ class TestFuncargFactory: def test_factory_uses_unknown_funcarg_error(self, testdir): testdir.makepyfile(""" import pytest - - @pytest.factory(scope='session') - def arg1(missing): + + @pytest.factory() + def fail(missing): return - def test_missing(arg1): + @pytest.factory() + def call_fail(fail): + return + + def test_missing(call_fail): pass """) result = testdir.runpytest()