[pypy-svn] r14322 - pypy/dist/pypy/objspace/std/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Jul 6 00:17:01 CEST 2005
Author: cfbolz
Date: Wed Jul 6 00:17:01 2005
New Revision: 14322
Modified:
pypy/dist/pypy/objspace/std/test/test_longobject.py
Log:
added (failing) test for long to string conversion
Modified: pypy/dist/pypy/objspace/std/test/test_longobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_longobject.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_longobject.py Wed Jul 6 00:17:01 2005
@@ -320,3 +320,8 @@
print "checking division for %s, %s" % (x, y)
check_division(x, y)
raises(ZeroDivisionError, "x // 0L")
+
+ def test_str(self):
+ assert str(-123456789L) == "-123456789"
+ assert str(123456789L) == "123456789"
+
More information about the Pypy-commit
mailing list