Opened 17 years ago
Closed 11 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)
Changed 17 years ago by
Attachment: | doctest_module_package.patch added |
---|
comment:1 Changed 17 years ago by
Component: | Uncategorized → Unit test system |
---|---|
Owner: | changed from Jacob to Adrian Holovaty |
Triage Stage: | Unreviewed → Accepted |
comment:2 Changed 16 years ago by
Cc: | jesse.lovelace@… added |
---|
comment:3 Changed 16 years ago by
comment:4 Changed 16 years ago by
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 Changed 13 years ago by
Severity: | → Normal |
---|---|
Type: | → Bug |
comment:8 Changed 11 years ago by
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.