{"action":"created","issue":{"url":"https://api.github.com/repos/AbdealiJK/pytest-attrib/issues/3","repository_url":"https://api.github.com/repos/AbdealiJK/pytest-attrib","labels_url":"https://api.github.com/repos/AbdealiJK/pytest-attrib/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/AbdealiJK/pytest-attrib/issues/3/comments","events_url":"https://api.github.com/repos/AbdealiJK/pytest-attrib/issues/3/events","html_url":"https://github.com/AbdealiJK/pytest-attrib/issues/3","id":155879286,"number":3,"title":"Subclasses in python3","user":{"login":"AbdealiJK","id":2200743,"avatar_url":"https://avatars.githubusercontent.com/u/2200743?v=3","gravatar_id":"","url":"https://api.github.com/users/AbdealiJK","html_url":"https://github.com/AbdealiJK","followers_url":"https://api.github.com/users/AbdealiJK/followers","following_url":"https://api.github.com/users/AbdealiJK/following{/other_user}","gists_url":"https://api.github.com/users/AbdealiJK/gists{/gist_id}","starred_url":"https://api.github.com/users/AbdealiJK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbdealiJK/subscriptions","organizations_url":"https://api.github.com/users/AbdealiJK/orgs","repos_url":"https://api.github.com/users/AbdealiJK/repos","events_url":"https://api.github.com/users/AbdealiJK/events{/privacy}","received_events_url":"https://api.github.com/users/AbdealiJK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-20T03:18:05Z","updated_at":"2016-05-20T04:27:44Z","closed_at":null,"body":"Not all tests of Subclasses are being used correctly.\r\nHere is the related build error: https://travis-ci.org/AbdealiJK/pytest-attrib/jobs/131589397\r\n\r\nHere, if I have:\r\n```python\r\nimport unittest\r\nclass OneTest(unittest.TestCase):\r\n    def test_one(self): pass\r\nOneTest.xyz = \"xyz\"\r\n\r\nclass TwoTest(OneTest):  # Inherited\r\n    def test_two(self): pass\r\n    xyz2 = \"xyz2\"\r\n```\r\nAnd run `-a xyz`, the following functions are \"found\" by the pytest-attrib hook:\r\n```python\r\n<function OneTest.test_one at 0xb66c702c>\r\n<function OneTest.test_one at 0xb66c702c>\r\n<function TwoTest.test_two at 0xb66c7194>\r\n```\r\nThe same in python2 is:\r\n```python\r\n<unbound method OneTest.test_one>\r\n<unbound method TwoTest.test_one>\r\n<unbound method TwoTest.test_two>\r\n```\r\n\r\nSo, it can be seen that in Python2 it clearly has TwoTest.test_one for the `test_one` inherited into TwoTest. In python3 because all class methods are considered as functions, this distinctions isnt there aymore :|"},"comment":{"url":"https://api.github.com/repos/AbdealiJK/pytest-attrib/issues/comments/220514561","html_url":"https://github.com/AbdealiJK/pytest-attrib/issues/3#issuecomment-220514561","issue_url":"https://api.github.com/repos/AbdealiJK/pytest-attrib/issues/3","id":220514561,"user":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars.githubusercontent.com/u/15092?v=3","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T04:27:44Z","updated_at":"2016-05-20T04:27:44Z","body":":+1:"}}
{"actor":{"display_login":"jayvdb"}}