diff options
author | holger krekel <holger@merlinux.eu> | 2014-10-02 15:25:42 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2014-10-02 15:25:42 +0200 |
commit | 2161b5455533eb420993430bcb8f232b8fceccc2 (patch) | |
tree | 1d7c293ab1a944edcb07d04edd6bdac7bb59fe0a /testing/test_helpconfig.py | |
parent | de83d35994ce04bf201d6f372f6d35d28479c93a (diff) | |
download | pytest-2161b5455533eb420993430bcb8f232b8fceccc2.tar.gz |
remove overhead for tracing of hook calls and remove some old unused code
Diffstat (limited to 'testing/test_helpconfig.py')
-rw-r--r-- | testing/test_helpconfig.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/testing/test_helpconfig.py b/testing/test_helpconfig.py index 7d4c7cab1..30ce9c9f2 100644 --- a/testing/test_helpconfig.py +++ b/testing/test_helpconfig.py @@ -1,5 +1,4 @@ -import py, pytest -from _pytest.core import collectattr +import pytest def test_version(testdir, pytestconfig): result = testdir.runpytest("--version") @@ -25,18 +24,6 @@ def test_help(testdir): *to see*fixtures*py.test --fixtures* """) -def test_collectattr(): - class A: - def pytest_hello(self): - pass - class B(A): - def pytest_world(self): - pass - methods = py.builtin.sorted(collectattr(B)) - assert list(methods) == ['pytest_hello', 'pytest_world'] - methods = py.builtin.sorted(collectattr(B())) - assert list(methods) == ['pytest_hello', 'pytest_world'] - def test_hookvalidation_unknown(testdir): testdir.makeconftest(""" def pytest_hello(xyz): |