This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: SystemError in unicodeobject.c
Type: behavior Stage: needs patch
Components: Tests Versions: Python 3.3
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: skrah, vstinner
Priority: normal Keywords:

Created on 2012-04-27 22:16 by skrah, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg159502 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2012-04-27 22:16
Seen on the Gentoo buildbot:
ERROR: test_format (test.test_bool.BoolTest)
Traceback (most recent call last):
  File "/var/lib/buildslave/3.x.murray-gentoo-wide/build/Lib/test/", line 167, in test_format
    self.assertEqual("%d" % False, "0")
SystemError: Objects/unicodeobject.c:13507: bad argument to internal function

msg159503 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2012-04-27 22:21
On another bot:

[250/364] test_bool
python: Objects/unicodeobject.c:13501: formatlong: Assertion `unicode_modifiable(result)' failed.
Fatal Python error: Aborted

Current thread 0xb75e16c0:
  File "<frozen importlib._bootstrap>", line 611 in get_code
  File "<frozen importlib._bootstrap>", line 510 in _load_module
  File "<frozen importlib._bootstrap>", line 294 in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 634 in load_module
  File "<frozen importlib._bootstrap>", line 1015 in _find_and_load
  File "/var/lib/buildslave/3.x.murray-gentoo/build/Lib/test/", line 1229 in runtest_inner
  File "/var/lib/buildslave/3.x.murray-gentoo/build/Lib/test/", line 907 in runtest
  File "/var/lib/buildslave/3.x.murray-gentoo/build/Lib/test/", line 710 in main
  File "/var/lib/buildslave/3.x.murray-gentoo/build/Lib/test/", line 13 in <module>
  File "/var/lib/buildslave/3.x.murray-gentoo/build/Lib/", line 75 in _run_code
  File "/var/lib/buildslave/3.x.murray-gentoo/build/Lib/", line 162 in _run_module_as_main
make: *** [buildbottest] Aborted
msg159504 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-04-27 22:29
It's my fault. It should be fixed by:

changeset:   76590:7bacccd889c2
tag:         tip
user:        Victor Stinner <>
date:        Sat Apr 28 00:25:34 2012 +0200
files:       Objects/unicodeobject.c
Fix my previous commit: bool is a long, restore the specical case for bool
Date User Action Args
2022-04-11 14:57:29adminsetgithub: 58891
2012-04-28 00:53:10vstinnersetstatus: open -> closed
resolution: fixed
2012-04-27 22:29:28vstinnersetmessages: + msg159504
2012-04-27 22:21:07skrahsetmessages: + msg159503
2012-04-27 22:17:05skrahsettype: crash -> behavior
2012-04-27 22:16:32skrahcreate