diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2016-07-11 22:03:53 -0300 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2016-07-11 22:21:52 -0300 |
commit | 458ecae1df0ede57182db685e7b9b3b8f0c7a652 (patch) | |
tree | 4bd7050c5d1be2bdb2d76d4f9f20667667703ba2 /testing/code | |
parent | ad4125dc0d0c941f50ae42aa61663a3895a6fd9f (diff) | |
download | pytest-458ecae1df0ede57182db685e7b9b3b8f0c7a652.tar.gz |
Replace all usages of "pytest_funcarg__" for @pytest.fixture
Diffstat (limited to 'testing/code')
-rw-r--r-- | testing/code/test_excinfo.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testing/code/test_excinfo.py b/testing/code/test_excinfo.py index 48696b5b0..2ccdd7028 100644 --- a/testing/code/test_excinfo.py +++ b/testing/code/test_excinfo.py @@ -381,7 +381,9 @@ def test_match_raises_error(testdir): ]) class TestFormattedExcinfo: - def pytest_funcarg__importasmod(self, request): + + @pytest.fixture + def importasmod(self, request): def importasmod(source): source = _pytest._code.Source(source) tmpdir = request.getfixturevalue("tmpdir") |