From 60a58a0c6fe7536a7a2641a44c1649b9aa7bc766 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 30 May 2010 14:52:44 -0400 Subject: Refactor the common parts of the plugins to neutral territory. --- test/test_testplugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_testplugin.py b/test/test_testplugin.py index 98459f5..2a38b86 100644 --- a/test/test_testplugin.py +++ b/test/test_testplugin.py @@ -18,10 +18,11 @@ class TestCoverage(PluginTester, unittest.TestCase): raise ValueError("Coverage down") return unittest.TestSuite([TC()]) + pytest_plugins = ['pytester'] def test_functional(testdir): testdir.makepyfile(""" - def f(): + def f(): x = 42 def test_whatever(): pass @@ -33,4 +34,4 @@ def test_functional(testdir): ]) coveragefile = testdir.tmpdir.join(".coverage") assert coveragefile.check() - # XXX try loading it? + # XXX try loading it? -- cgit v1.2.1