[issue28385] Bytes objects should reject all formatting codes with an error message

Ned Deily report at bugs.python.org
Sun Oct 30 14:54:55 EDT 2016


Ned Deily added the comment:

Buildbots are failing:

======================================================================
FAIL: test_errors (test.test_fstring.TestCase) (str="f'{(lambda: 0):x}'")
----------------------------------------------------------------------
TypeError: unsupported format string passed to function.__format__

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/test/test_fstring.py", line 20, in assertAllRaise
    eval(str)
AssertionError: "non-empty" does not match "unsupported format string passed to function.__format__"

======================================================================
FAIL: test_errors (test.test_fstring.TestCase) (str="f'{(0,):x}'")
----------------------------------------------------------------------
TypeError: unsupported format string passed to tuple.__format__

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/buildarea/3.6.angelico-debian-amd64/build/Lib/test/test_fstring.py", line 20, in assertAllRaise
    eval(str)
AssertionError: "non-empty" does not match "unsupported format string passed to tuple.__format__"

----------------------------------------------------------------------
Ran 48 tests in 1.389s

----------
nosy: +ned.deily

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


More information about the Python-bugs-list mailing list