Closed
Description
Bug report
Bug description:
$ ./python -m test test_format
Using random seed: 982853282
0:00:00 load avg: 2.14 Run 1 test sequentially
0:00:00 load avg: 2.14 [1/1] test_format
Unexpected <class 'TypeError'> : '%c requires an integer in range(256) or a single byte, not a bytes object of length 2'
Unexpected <class 'TypeError'> : '%c requires an integer in range(256) or a single byte, not str'
Unexpected <class 'TypeError'> : '%c requires an integer in range(256) or a single byte, not float'
Unexpected <class 'TypeError'> : '%c requires an int or a unicode character, not float'
Unexpected <class 'TypeError'> : '%c requires an int or a unicode character, not a string of length 2'
Unexpected <class 'TypeError'> : '%c requires an int or a unicode character, not bytes'
== Tests result: SUCCESS ==
1 test OK.
Total duration: 171 ms
Total tests: run=18
Total test files: run=1/1
Result: SUCCESS
I would guess this was broken by b313cc6.
- Expected messages should be adjusted.
- I think that tests must fail in this case, so
test_exc()
should be fixed.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response