{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/11913","labels_url":"https://api.github.com/repos/pydata/pandas/issues/11913/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/11913/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/11913/events","html_url":"https://github.com/pydata/pandas/pull/11913","id":123983944,"number":11913,"title":"ENH: add pd.test to enable nose test runnning from the imported session, #4327","user":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Testing","name":"Testing","color":"C4A000"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/pydata/pandas/milestones/36","html_url":"https://github.com/pydata/pandas/milestones/0.18.0","labels_url":"https://api.github.com/repos/pydata/pandas/milestones/36/labels","id":1214851,"number":36,"title":"0.18.0","description":"","creator":{"login":"jreback","id":953992,"avatar_url":"https://avatars.githubusercontent.com/u/953992?v=3","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"open_issues":68,"closed_issues":142,"state":"open","created_at":"2015-07-19T20:18:45Z","updated_at":"2016-01-08T22:46:54Z","due_on":"2016-01-31T05:00:00Z","closed_at":null},"comments":8,"created_at":"2015-12-27T15:44:51Z","updated_at":"2016-01-09T15:11:01Z","closed_at":"2016-01-08T14:07:46Z","pull_request":{"url":"https://api.github.com/repos/pydata/pandas/pulls/11913","html_url":"https://github.com/pydata/pandas/pull/11913","diff_url":"https://github.com/pydata/pandas/pull/11913.diff","patch_url":"https://github.com/pydata/pandas/pull/11913.patch"},"body":"closes #4327\r\n\r\ncopied from ``numpy`` nosetester."},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/170250087","html_url":"https://github.com/pydata/pandas/pull/11913#issuecomment-170250087","issue_url":"https://api.github.com/repos/pydata/pandas/issues/11913","id":170250087,"user":{"login":"TomAugspurger","id":1312546,"avatar_url":"https://avatars.githubusercontent.com/u/1312546?v=3","gravatar_id":"","url":"https://api.github.com/users/TomAugspurger","html_url":"https://github.com/TomAugspurger","followers_url":"https://api.github.com/users/TomAugspurger/followers","following_url":"https://api.github.com/users/TomAugspurger/following{/other_user}","gists_url":"https://api.github.com/users/TomAugspurger/gists{/gist_id}","starred_url":"https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomAugspurger/subscriptions","organizations_url":"https://api.github.com/users/TomAugspurger/orgs","repos_url":"https://api.github.com/users/TomAugspurger/repos","events_url":"https://api.github.com/users/TomAugspurger/events{/privacy}","received_events_url":"https://api.github.com/users/TomAugspurger/received_events","type":"User","site_admin":false},"created_at":"2016-01-09T15:11:01Z","updated_at":"2016-01-09T15:11:01Z","body":"FYI: http://pytest.readthedocs.org/en/latest/nose.html specifically\r\n\r\n## Unsupported idioms / known issues\r\n- unittest-style setUp, tearDown, setUpClass, tearDownClass are recognized only on unittest.TestCase classes but not on plain classes. nose supports these methods also on plain classes but pytest deliberately does not. As nose and pytest already both support setup_class, teardown_class, setup_method, teardown_method it doesn’t seem useful to duplicate the unittest-API like nose does. If you however rather think pytest should support the unittest-spelling on plain classes please post to this issue.\r\n- nose imports test modules with the same import path (e.g. tests.test_mod) but different file system paths (e.g. tests/test_mode.py and other/tests/test_mode.py) by extending sys.path/import semantics. pytest does not do that but there is discussion in issue268 for adding some support. Note that nose2 choose to avoid this sys.path/import hackery.\r\n- nose-style doctests are not collected and executed correctly, also doctest fixtures don’t work.\r\n- no nose-configuration is recognized\r\n\r\nJust ran them both,\r\n\r\nNose\r\n\r\n```\r\nRan 5468 tests in 932.244s\r\n\r\nFAILED (SKIP=48, errors=4, failures=1)\r\n```\r\n(Two of those errors are from the branch I'm working on, not sure about the cause of the others)\r\n\r\nPytest\r\n````\r\n============= 21 failed, 5525 passed, 48 skipped in 958.65 seconds =============\r\n```\r\n\r\nJust glancing at the output the majority of the additional failures came from `test_testing.py`"}}