mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
check for str.__mod__
This commit is contained in:
parent
ab9e4b76c2
commit
b981df9943
1 changed files with 3 additions and 0 deletions
|
|
@ -282,6 +282,9 @@ def run_method_tests(test):
|
||||||
test('zfill', '34', '34', 1)
|
test('zfill', '34', '34', 1)
|
||||||
test('zfill', '34', '0034', 4)
|
test('zfill', '34', '0034', 4)
|
||||||
|
|
||||||
|
test('__mod__', '+%s+', '+hello+', 'hello')
|
||||||
|
test('__mod__', '+%d+', '+10+', 10)
|
||||||
|
|
||||||
# Encoding/decoding
|
# Encoding/decoding
|
||||||
codecs = [('rot13', 'uryyb jbeyq'),
|
codecs = [('rot13', 'uryyb jbeyq'),
|
||||||
('base64', 'aGVsbG8gd29ybGQ=\n'),
|
('base64', 'aGVsbG8gd29ybGQ=\n'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue