diff --git a/_pytest/main.py b/_pytest/main.py index 23a5430f0..de69d351b 100644 --- a/_pytest/main.py +++ b/_pytest/main.py @@ -8,7 +8,7 @@ try: except ImportError: from UserDict import DictMixin as MappingMixin -from _pytest.runner import collect_one_node, Skipped +from _pytest.runner import collect_one_node tracebackcutdir = py.path.local(_pytest.__file__).dirpath() diff --git a/testing/python/collect.py b/testing/python/collect.py index 1e911cf19..e0fb5aaf7 100644 --- a/testing/python/collect.py +++ b/testing/python/collect.py @@ -277,7 +277,7 @@ class TestFunction: assert hasattr(modcol.obj, 'test_func') def test_function_as_object_instance_ignored(self, testdir): - item = testdir.makepyfile(""" + testdir.makepyfile(""" class A: def __call__(self, tmpdir): 0/0