diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-12-05 20:28:34 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-12-05 20:28:34 +0000 |
commit | 5c2db37c20ad62097ffaaea32c7e332484c200e0 (patch) | |
tree | 9f88385ce641ffaa2587693bd38bc1d0f2cfb674 /Lib/test/string_tests.py | |
parent | c39aad7c278135e599489914e74cf939e39953e9 (diff) | |
download | cpython-git-5c2db37c20ad62097ffaaea32c7e332484c200e0.tar.gz |
Issue #7435: Remove duplicate int/long tests, and other
references to long in py3k. Patch provided by flox.
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r-- | Lib/test/string_tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index 1637efb51b..85e52f3204 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -1071,7 +1071,6 @@ class MixinStrUnicodeUserStringTest: longvalue = sys.maxsize + 10 slongvalue = str(longvalue) - if slongvalue[-1] in ("L","l"): slongvalue = slongvalue[:-1] self.checkequal(' 42', '%3ld', '__mod__', 42) self.checkequal('42', '%d', '__mod__', 42.0) self.checkequal(slongvalue, '%d', '__mod__', longvalue) @@ -1086,7 +1085,7 @@ class MixinStrUnicodeUserStringTest: self.checkraises(ValueError, '%(foo', '__mod__', {}) self.checkraises(TypeError, '%(foo)s %(bar)s', '__mod__', ('foo', 42)) self.checkraises(TypeError, '%d', '__mod__', "42") # not numeric - self.checkraises(TypeError, '%d', '__mod__', (42+0j)) # no int/long conversion provided + self.checkraises(TypeError, '%d', '__mod__', (42+0j)) # no int conversion provided # argument names with properly nested brackets are supported self.checkequal('bar', '%((foo))s', '__mod__', {'(foo)': 'bar'}) |