Dieter Maurer added the comment:
The observation was caused by a bug which has been fixed in newer Python
versions (3.9+ if I remember correctly). `isAlive` was called on a
`_DummyThread` (while `_DummyThread` overides `is_alive` it had forgotten to
override `isAlive` as well
Dieter Maurer added the comment:
Apparently, the explanation is not that easy: `_stop` first sets `_is_stopped`
to `True` and only then `_tstate_lock` to `None`. Therefore, the race should
not cause the `AssertionError`.
I observed the `AssertionError` in Python 3.6. The related `threading
New submission from Dieter Maurer :
I have observed an `AssertionError (assert self._is_stopped)` in
`threading.Thread._wait_for_tstate_lock`. This indicates that Python's internal
state has been corrupted.
The analysis revealed the following race condition:
`_wait_for_tstate:lock` con
Dieter Maurer added the comment:
Thank you for working on this issue!
--
___
Python tracker
<https://bugs.python.org/issue36674>
___
___
Python-bugs-list mailin
New submission from Dieter Maurer :
RFC 1521 and "https://tools.ietf.org/html/rfc2045#section-6.7";
stipulate that the quoted printable encoding uses CRLF line endings. Python's
"quopri" implementation does not honor this.
--
components: Library (Lib)
messa
Dieter Maurer added the comment:
The following fixes the example:
from copy import copy
from io import BytesIO
from email.message import Message
from email.generator import BytesGenerator, _has_surrogates
from email._policybase import Compat32
class FixedBytesGenerator(BytesGenerator
New submission from Dieter Maurer :
In the transscript below, "ms" and "mb" should be equivalent:
>>> from email import message_from_string, message_from_bytes
>>> mt = """\
... Mime-Version: 1.0
... Content-Type: text/plain; charset
Dieter Maurer added the comment:
Terry J. Reedy wrote:
> SkipTest is an exception and according to the doc it should be propagated to
> the caller. __unittest_skip__ is an undocumented internal name, so you
> probably should not be using it.
>
> If this request is not rejecte
New submission from Dieter Maurer :
Currently, "TestCase.run" supports several features to control testing - among
others, a test can be skipped via the attribute "__unittest_skip__".
"TestCase.debug" ignores all those controls and calls the test method
Dieter Maurer added the comment:
This is a duplicate of issue34900
--
stage: -> resolved
status: open -> closed
Added file: https://bugs.python.org/file48249/utest.py
___
Python tracker
<https://bugs.python.org/i
Change by Dieter Maurer :
Added file: https://bugs.python.org/file48248/utest.py
___
Python tracker
<https://bugs.python.org/issue36554>
___
___
Python-bugs-list mailin
New submission from Dieter Maurer :
"subTest" accesses "self._outcome" which is "None" when the test is performed
via "debug".
--
components: Library (Lib)
messages: 339607
nosy: dmaurer
priority: normal
severity: normal
status: open
title: uni
Dieter Maurer added the comment:
> Hi, I am going to solve this issue through below process.
> ...
> Is it okay?
For me, this would be perfect.
--
___
Python tracker
<https://bugs.python.or
Dieter Maurer added the comment:
> Care to open a PR to fix this?
I am not familiar with the "github" workflow. The fix is so trivial (add the
"isAlive = is_alive" alias to "threading._DummyThread" and replace "isAlive" by
"is_alive" in
New submission from Dieter Maurer :
In module "threading", class "Thread" defines "is_alive" and defines "isAlive =
is_alive". The derived class "_DummyThread" redefines "is_alive" but forgets to
update the "isAlive"
New submission from Dieter Maurer <[EMAIL PROTECTED]>:
"doctest.DocTestCase.debug" calls "DebugRunner.run" without
"clear_globs=False". As a consequence, already the runner clears
"test.globs" and it is no longer available to "tearDown&q
New submission from Dieter Maurer <[EMAIL PROTECTED]>:
"doctest.DocTestSuite" has parameter "globs=None".
It uses "globs" in the call to "test_finder.call".
After this use, it potentually modifies "globs" but no longer uses it.
Either t
Dieter Maurer added the comment:
In "dm.zdoc" (a "pydoc" wrapper for Zope) I simply filter out all names
returned by "dir" which cannot be "getattr"ed.
But, I am not sure, that this is good enough to be accepted as a patch
(although it
New submission from Dieter Maurer:
The inspect functions "getmembers(cls)" and "classify_class_attrs(cls)"
require that for a class *cls* each name in "dir(cls)" can be retrieved
by "getattr(cls, name)". While this holds for usual class attributes, it
ma
19 matches
Mail list logo