New GitHub issue #119780 from skirpichev:<br>
<hr>
<pre>
# 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 b313cc68d5. (1) Expected messages should be adjusted. BTW I think (2) tests must fail in this case, isn't?
I'll work on (1). Let me know if I should change also (2).
### CPython versions tested on:
CPython main branch
### Operating systems tested on:
_No response_
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/119780">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>