[pypy-svn] r16056 - pypy/dist/pypy/objspace/std/test
tismer at codespeak.net
tismer at codespeak.net
Sun Aug 14 01:54:57 CEST 2005
Author: tismer
Date: Sun Aug 14 01:54:56 2005
New Revision: 16056
Modified:
pypy/dist/pypy/objspace/std/test/test_longobject.py
Log:
we can't use overflow values because marshal doesn't handle
them correctly in version 1 (string literal)
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 Sun Aug 14 01:54:56 2005
@@ -121,7 +121,10 @@
y = lobj._AsDouble(f1)
assert f1.longval() == long(x)
# check overflow
- x = 12345.6789e10000000000000000000000000000
+ #x = 12345.6789e10000000000000000000000000000
+ # XXX don't use such consts.Marshal doesn't handle them right.
+ x = 12345.6789e200
+ x *= x
assert raises(OverflowError, lobj._FromDouble, self.space, x)
# testing Karatsuba stuff
More information about the Pypy-commit
mailing list