Opened 18 years ago
Closed 12 years ago
#3343 closed Bug (wontfix)
Doctest find() doesn't work for model subpackage (models/__init__.py)
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | noah@…, jesse.lovelace@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
#2982 addresses a small issue with splitting up models into a subpackage. This works fine, except the test runner can no longer find doctests in the other package files.
This is the default doctest behavior, to avoid recursing too far on packages. I have found that removing the module filter works just fine on all my model subpackages, but I am not sure if there are other consequences of removing this...
Maybe there is a better way to address this issue?
Attachments (1)
Change History (9)
by , 18 years ago
Attachment: | doctest_module_package.patch added |
---|
comment:1 by , 18 years ago
Component: | Uncategorized → Unit test system |
---|---|
Owner: | changed from | to
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 17 years ago
Cc: | added |
---|
comment:3 by , 17 years ago
comment:4 by , 17 years ago
There's a more complicated patch for this in #5751.
I didn't try this, but your approach might drop file/linenum information from error messages.
comment:5 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Bug |
comment:8 by , 12 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Time has passed since this ticket was accepted, and it no longer looks like a good idea. The trend is to remove custom support for doctests, not to extend it. See #18727 for more details.
This needs to wait for a resolution to #3591.