tests: Add boolean-as-integer formatting tests for fixed regression.

As suggested by @dpgeorge in #5538.
This commit is contained in:
Yonatan Goldschmidt
2020-01-22 20:53:54 +01:00
committed by Damien George
parent 35e664d779
commit cb4472df42
3 changed files with 12 additions and 0 deletions

View File

@@ -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' % {})