{"action":"created","issue":{"url":"https://api.github.com/repos/box/flaky/issues/64","labels_url":"https://api.github.com/repos/box/flaky/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/box/flaky/issues/64/comments","events_url":"https://api.github.com/repos/box/flaky/issues/64/events","html_url":"https://github.com/box/flaky/issues/64","id":112619368,"number":64,"title":"Call setup_method & teardown_method on each re-run","user":{"login":"mangeld","id":6747546,"avatar_url":"https://avatars.githubusercontent.com/u/6747546?v=3","gravatar_id":"","url":"https://api.github.com/users/mangeld","html_url":"https://github.com/mangeld","followers_url":"https://api.github.com/users/mangeld/followers","following_url":"https://api.github.com/users/mangeld/following{/other_user}","gists_url":"https://api.github.com/users/mangeld/gists{/gist_id}","starred_url":"https://api.github.com/users/mangeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangeld/subscriptions","organizations_url":"https://api.github.com/users/mangeld/orgs","repos_url":"https://api.github.com/users/mangeld/repos","events_url":"https://api.github.com/users/mangeld/events{/privacy}","received_events_url":"https://api.github.com/users/mangeld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-21T15:45:44Z","updated_at":"2015-11-05T19:41:04Z","closed_at":"2015-11-05T19:41:04Z","body":"If using the setup_class or setup_method to prepare fixtures for a test (like opening a browser in the setup_method and closing it in the teardown_method) should not flaky call those methods aswell on each run?\r\n\r\nIt might be related with #53\r\n\r\n~~~ python\r\n@flaky(min_passes=3, max_runs=6)\r\nclass TestFlaky:\r\n\r\n    def setup_method(self, method):\r\n        # It's called once\r\n        pass\r\n\r\n    def teardown_method(self, method):\r\n        # Called once as well\r\n        pass\r\n\r\n    def test_fail_always(self):\r\n        assert None\r\n~~~"},"comment":{"url":"https://api.github.com/repos/box/flaky/issues/comments/154168772","html_url":"https://github.com/box/flaky/issues/64#issuecomment-154168772","issue_url":"https://api.github.com/repos/box/flaky/issues/64","id":154168772,"user":{"login":"Jeff-Meadows","id":3839339,"avatar_url":"https://avatars.githubusercontent.com/u/3839339?v=3","gravatar_id":"","url":"https://api.github.com/users/Jeff-Meadows","html_url":"https://github.com/Jeff-Meadows","followers_url":"https://api.github.com/users/Jeff-Meadows/followers","following_url":"https://api.github.com/users/Jeff-Meadows/following{/other_user}","gists_url":"https://api.github.com/users/Jeff-Meadows/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeff-Meadows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeff-Meadows/subscriptions","organizations_url":"https://api.github.com/users/Jeff-Meadows/orgs","repos_url":"https://api.github.com/users/Jeff-Meadows/repos","events_url":"https://api.github.com/users/Jeff-Meadows/events{/privacy}","received_events_url":"https://api.github.com/users/Jeff-Meadows/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T19:41:04Z","updated_at":"2015-11-05T19:41:04Z","body":"Yes, I think it's a duplicate of #53. I'll give that issue another shot at fixing. Not sure how easily it can be done."}}