Django

Code

Ticket #3343 (new)

Opened 1 year ago

Last modified 9 months ago

Doctest find() doesn't work for model subpackage (models/__init__.py)

Reported by: anonymous Assigned to: nobody
Milestone: Component: Unit test system
Version: SVN Keywords:
Cc: noah@bitscribe.net, jesse.lovelace@gmail.com Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

doctest_module_package.patch (0.5 kB) - added by noah@bitscribe.net on 01/21/07 14:37:03.

Change History

01/21/07 14:37:03 changed by noah@bitscribe.net

  • attachment doctest_module_package.patch added.

03/10/07 17:16:20 changed by Simon G. <dev@simon.net.nz>

  • needs_better_patch changed.
  • component changed from Uncategorized to Unit test system.
  • needs_tests changed.
  • owner changed from jacob to adrian.
  • needs_docs changed.
  • stage changed from Unreviewed to Accepted.

07/16/07 14:54:15 changed by anonymous

  • cc changed from noah@bitscribe.net to noah@bitscribe.net, jesse.lovelace@gmail.com.

09/16/07 11:08:17 changed by ubernostrum

This needs to wait for a resolution to #3591.

10/17/07 03:11:21 changed by akaihola

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.


Add/Change #3343 (Doctest find() doesn't work for model subpackage (models/__init__.py))




Change Properties
Action