summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-11-18 16:12:11 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-11-18 16:12:11 (GMT)
commitb981df99439c0c4ef4524354d8fd010ea440263f (patch)
tree49fd49d582a278c2532e6a6c0c8b50f6750b31f8 /Lib
parentab9e4b76c227491fa454f9f13603453f168aad40 (diff)
downloadcpython-b981df99439c0c4ef4524354d8fd010ea440263f.zip
cpython-b981df99439c0c4ef4524354d8fd010ea440263f.tar.gz
cpython-b981df99439c0c4ef4524354d8fd010ea440263f.tar.bz2
check for str.__mod__
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/string_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py
index f2d6853..3eb8785 100644
--- a/Lib/test/string_tests.py
+++ b/Lib/test/string_tests.py
@@ -282,6 +282,9 @@ def run_method_tests(test):
test('zfill', '34', '34', 1)
test('zfill', '34', '0034', 4)
+ test('__mod__', '+%s+', '+hello+', 'hello')
+ test('__mod__', '+%d+', '+10+', 10)
+
# Encoding/decoding
codecs = [('rot13', 'uryyb jbeyq'),
('base64', 'aGVsbG8gd29ybGQ=\n'),