-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Cython modules work with doctest #949
Comments
@dagss changed owner from |
@dagss changed resolution to http://hg.cython.org/cython-unstable/rev/6371ba048f68 I'll also make it the default in an upcoming changeset. |
@dagss changed resolution from There's a problem with |
@dagss changed description from A new directive doctesthack (might default to True unless opposition appears on ML). When enabled, and a http://thread.gmane.org/gmane.comp.python.cython.devel/7626 to A new directive "autotestdict" (might default to True unless opposition appears on ML). When enabled, and a http://thread.gmane.org/gmane.comp.python.cython.devel/7626 OK this is done now. The directive is renamed to autotestdict. |
@dagss changed milestone from A new approach is needed; not all slots in cdef classes are available from Python space. The best solution is probably:
This is much easier to do once CythonUtilityCode is merged, which makes it more suitable for 0.12.1. It could be turned off by default until that can be done if this is too much of an issue. This hack (http://hg.cython.org/cython-devel/rev/48ab4c8c76d1) should at least get Sage to compile, I think, but it is not even complete with regards to slot names. |
@dagss changed milestone from I guess the issue of whether it should be default should be revisited before pushing the ticket to 0.12.1. |
@dagss changed milestone from The blacklist has seen some more work/modifications and should be rather safe. We rather quickly started to depend on this feature (both in our tests and in my personal project code) so this should probably be left on by default for 0.12. Moving to 0.12.1 to revisit the question of the best implementation. |
@dagss changed milestone from Make Cython modules work with doctest to Improve Cython test dict implementation |
@dagss changed milestone from Improve Cython test dict implementation to Make Cython modules work with doctest On second thought, I'm opening a new ticket for improvement so that this gets into release history... |
@dagss changed resolution to Follow-up on http://trac.cython.org/ticket/497 |
A new directive "autotestdict" (might default to True unless opposition appears on ML). When enabled, and a
__test__
dictionary is not already present, one is created containing all functions and methods with docstrings in the file, so that they get picked up by doctest.http://thread.gmane.org/gmane.comp.python.cython.devel/7626
Migrated from http://trac.cython.org/ticket/387
The text was updated successfully, but these errors were encountered: