[issue12467] test_threading.test_6_daemon_threads(): Assertion failed: PyUnicode_Check(*filename), file ..\Python\_warnings.c, line 501

STINNER Victor report at bugs.python.org
Mon Jul 4 00:46:57 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

The assertion occurs in setup_context() of Python/_warnings.c, called by fileio_dealloc_warn(). The problem is that globals()['__file__'] is None.

Attached patch should fix this issue.

----------
keywords: +patch
nosy: +pitrou
versions: +Python 2.7, Python 3.2
Added file: http://bugs.python.org/file22557/warn_unicode.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12467>
_______________________________________


More information about the Python-bugs-list mailing list