mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
9 lines
164 B
Python
9 lines
164 B
Python
assert format(5, "b") == "101"
|
|
|
|
try:
|
|
format(2, 3)
|
|
except TypeError:
|
|
pass
|
|
else:
|
|
assert False, "TypeError not raised when format is called with a number"
|