--
Ticket URL: <https://code.djangoproject.com/ticket/18727>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/18727#comment:1>
* stage: Unreviewed => Design decision needed
Comment:
I'm the author of that ticket, and the person responsible for there being
no tests. If I'd finished the job in 2006, it would have been a non-issue,
but as it is, we have a headache.
However, we need to be clear about what it is we'd be deprecating -- it's
not just removing our copy of doctests, we'd be deprecating '''the ability
for Django's test runner to identify and include doctests'''. The reason
the modified doctest package exists is for integration with our test
runner; if we remove the duplicate package, we lose the features we need
to integrate with the test runner.
Since the doctest-ocalypse, this isn't an issue for Django itself;
however, I can imagine that it may be problematic for some users.
Personally, I have no problems killing doctests in this way. I'm sure
others share my enthusiasm. I'm also sure that some do not.
Another way to tackle this problem -- make it part of #17365. If we change
our test discovery mechanism to be something standardized, we can fall
back on the standardized behaviour, which won't include doctests by
default.
--
Ticket URL: <https://code.djangoproject.com/ticket/18727#comment:2>
* stage: Design decision needed => Accepted
Comment:
Let's do this with #17365 then.
--
Ticket URL: <https://code.djangoproject.com/ticket/18727#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"9012833af857e081b515ce760685b157638efcef"]:
{{{
#!CommitTicketReference repository=""
revision="9012833af857e081b515ce760685b157638efcef"
Fixed #17365, #17366, #18727 -- Switched to discovery test runner.
Thanks to Preston Timmons for the bulk of the work on the patch,
especially
updating Django's own test suite to comply with the requirements of the
new
runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on
the
patch and the discovery runner.
Refs #11077, #17032, and #18670.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/18727#comment:4>
Comment (by carljm):
Closing this ticket, as `django.test._doctest` has now been deprecated and
will be removed on the normal deprecation schedule.
--
Ticket URL: <https://code.djangoproject.com/ticket/18727#comment:5>
Comment (by Florian Apolloner <florian@…>):
In [changeset:"e23a5f9a4730ddecb8f3950ee2936716f458c506"]:
{{{
#!CommitTicketReference repository=""
revision="e23a5f9a4730ddecb8f3950ee2936716f458c506"
Fixed a regression in the test runner loading of runtests.py.
Refs #17365, #17366, #18727.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/18727#comment:6>
Comment (by Florian Apolloner <florian@…>):
In [changeset:"2bf403ecbd958bfb269794b36e61b69f0aede4cf"]:
{{{
#!CommitTicketReference repository=""
revision="2bf403ecbd958bfb269794b36e61b69f0aede4cf"
Fixed a regression from e23a5f9a4730ddecb8f3950ee2936716f458c506.
Excluded postgis specific gis tests from other spatial databases.
Refs #17365, #17366, #18727.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/18727#comment:7>
Comment (by Tim Graham <timograham@…>):
In [changeset:"bf5430a20b65b3e76a2f8cd2580101e0baa59f82"]:
{{{
#!CommitTicketReference repository=""
revision="bf5430a20b65b3e76a2f8cd2580101e0baa59f82"
Removed django.test.simple and django.test._doctest per deprecation
timeline.
refs #17365, #17366, #18727.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/18727#comment:8>