tests: Add boolean-as-integer formatting tests for fixed regression.
As suggested by @dpgeorge in #5538.
This commit is contained in:
committed by
Damien George
parent
35e664d779
commit
cb4472df42
@@ -40,6 +40,9 @@ print("%c" % 'a')
|
||||
print("%10s" % 'abc')
|
||||
print("%-10s" % 'abc')
|
||||
|
||||
print('%c' % False)
|
||||
print('%c' % True)
|
||||
|
||||
# Should be able to print dicts; in this case they aren't used
|
||||
# to lookup keywords in formats like %(foo)s
|
||||
print('%s' % {})
|
||||
|
||||
Reference in New Issue
Block a user