'issue shadowing error with wrong number of arguments on teardown_method.'

def test_exact_teardown_issue1206(self, testdir):

    rec = testdir.inline_runsource('\n                                                import    pytest\n\n                                                class    TestClass(object):\n                                                                def    teardown_method(self,    x,    y,    z):\n                                                                                pass\n\n                                                                def    test_method(self):\n                                                                                assert    True\n                                ')
    reps = rec.getreports('pytest_runtest_logreport')
    print(reps)
    assert (len(reps) == 3)
    assert reps[0].nodeid.endswith('test_method')
    assert reps[0].passed
    assert (reps[0].when == 'setup')
    assert reps[1].nodeid.endswith('test_method')
    assert reps[1].passed
    assert (reps[1].when == 'call')
    assert reps[2].nodeid.endswith('test_method')
    assert reps[2].failed
    assert (reps[2].when == 'teardown')
    assert (reps[2].longrepr.reprcrash.message in ("TypeError:    teardown_method()    missing    2    required    positional    arguments:    'y'    and    'z'", 'TypeError:    teardown_method()    takes    exactly    4    arguments    (2    given)'))
