[pypy-svn] r75049 - pypy/trunk/pypy/objspace/std/test
arigo at codespeak.net
arigo at codespeak.net
Thu Jun 3 15:43:48 CEST 2010
Author: arigo
Date: Thu Jun 3 15:43:46 2010
New Revision: 75049
Modified:
pypy/trunk/pypy/objspace/std/test/test_stringformat.py
Log:
Add passing tests.
Modified: pypy/trunk/pypy/objspace/std/test/test_stringformat.py
==============================================================================
--- pypy/trunk/pypy/objspace/std/test/test_stringformat.py (original)
+++ pypy/trunk/pypy/objspace/std/test/test_stringformat.py Thu Jun 3 15:43:46 2010
@@ -125,6 +125,15 @@
assert '27' == '%.2o' % n
assert '027' == '%#.2o' % n
+ def test_format_long(self):
+ l = 4800000000L
+ assert '%d' % l == '4800000000'
+ #
+ class SubLong(long):
+ pass
+ sl = SubLong(l)
+ assert '%d' % sl == '4800000000'
+
def test_format_list(self):
l = [1,2]
assert '<[1, 2]>' == '<%s>' % l
More information about the Pypy-commit
mailing list