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)

doctest_module_package.patch (555 bytes) - added by noah@… 17 years ago.

Download all attachments as: .zip

Change History (9)

Changed 17 years ago by noah@…

comment:1 Changed 17 years ago by Simon G. <dev@…>

Component: UncategorizedUnit test system
Owner: changed from Jacob to Adrian Holovaty
Triage Stage: UnreviewedAccepted

comment:2 Changed 16 years ago by anonymous

Cc: jesse.lovelace@… added

comment:3 Changed 16 years ago by James Bennett

This needs to wait for a resolution to #3591.

comment:4 Changed 16 years ago by Antti Kaihola

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 Łukasz Rekucki

Severity: Normal
Type: Bug

comment:6 Changed 12 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:7 Changed 12 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:8 Changed 11 years ago by Aymeric Augustin

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top