[pypy-commit] pypy default: unskip and improve the test

antocuni noreply at buildbot.pypy.org
Tue Jul 12 13:01:25 CEST 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r45505:3bf39b9f938f
Date: 2011-07-12 13:00 +0200
http://bitbucket.org/pypy/pypy/changeset/3bf39b9f938f/

Log:	unskip and improve the test

diff --git a/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py b/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py
--- a/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py
+++ b/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py
@@ -134,13 +134,12 @@
 
 
     def test_truncate_python_longs(self):
-        py.test.skip("fixme")
         f = dll._testfunc_i_bhilfd
         f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
         f.restype = c_int
         x = sys.maxint * 2
-        result = f(0, 0, x, 0, 0, 0)
-        assert result == 2
+        result = f(x, x, x, x, 0, 0)
+        assert result == -8
 
 
     def test_floatresult(self):


More information about the pypy-commit mailing list