New submission from Piet Delport <[EMAIL PROTECTED]>:
DocTestCase.tearDown destructively clears its DocTest instance's globs,
preventing the test from being run repeatedly (such as with trial
--until-failure).
There's a fix for this in zope.testing's version of doctest, w
Piet Delport <[EMAIL PROTECTED]> added the comment:
Addendum: This appears to be a regression in r36809 (Python 2.4+).
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
New submission from Piet Delport <[EMAIL PROTECTED]>:
Short version: __get__/__set__/__delete__ attributes on descriptor objects
(as opposed to their types) are treated inconsistently as part of the
descriptor
protocol: the documentation and support code includes them; the core
implemen
Piet Delport <[EMAIL PROTECTED]> added the comment:
> If any of the variables in test.globs are changed by the test (e.g.
appending to a list), then rerunning the test will not necessarily give
the same result.
This is true, but modifying the globals such that subsequent runs of the
Piet Delport <[EMAIL PROTECTED]> added the comment:
Well, whether that code is wrong depends on whether your project policy
wants repeatable tests or not. A repeatable and arguably more idiomatic
way of writing that example is to give DocFileSuite a setUp function
which initializes any s
Piet Delport <[EMAIL PROTECTED]> added the comment:
Related: #643841 (new-style special method lookup)
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2605>
__
_
Piet Delport <[EMAIL PROTECTED]> added the comment:
Somewhat related: #2605 (descriptor __get__/__set__/__delete__)
--
nosy: +pjd
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.
Piet Delport <[EMAIL PROTECTED]> added the comment:
>From the Py3K list:
http://mail.python.org/pipermail/python-3000/2007-March/006304.html
The sentiment appears to be to leave the behavior
implementation-defined. It seems straightforward to update inspect and
pydoc to mirror typ
Changes by Piet Delport <[EMAIL PROTECTED]>:
--
keywords: +patch
Added file: http://bugs.python.org/file10060/reset_globs.patch
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho