Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[MRG + 1] Make it possible to run doctests in .rst files with pytest #9697
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
after this they don't run with nose any more, do they? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
lesteve
Sep 8, 2017
Member
after this they don't run with nose any more, do they?
doctests still run fine with nose. The Travis build are exactly as before with 3 builds using nose and 1 using pytest.
doctests still run fine with nose. The Travis build are exactly as before with 3 builds using nose and 1 using pytest. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
amueller
Sep 8, 2017
Owner
But the fixtures are not run any more for nosetests, right? So that means it downloads the datasets?
But the fixtures are not run any more for nosetests, right? So that means it downloads the datasets? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
lesteve
Sep 9, 2017
Member
The nose fixtures files i.e. *_fixture.py
are still there so for nose everything is behaving as previously. The only thing I did was to put the custom_data_home
definition in the mldata.rst rather than in the fixture globs. Although there is doctest_namespace that is similar for pytest, the complication did not seem worth the effort IMO.
The nose fixtures files i.e. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
ah ok, lgtm |
lesteve commentedSep 6, 2017
•
Edited 1 time
-
lesteve
Sep 6, 2017
Fix #9445.
is used rather than the package in site-packages