[pypy-svn] pypy default: longs are acceptable here.

alex_gaynor commits-noreply at bitbucket.org
Sun Feb 6 00:14:10 CET 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r41638:542a9a6f3372
Date: 2011-02-05 18:13 -0500
http://bitbucket.org/pypy/pypy/changeset/542a9a6f3372/

Log:	longs are acceptable here.

diff --git a/lib-python/modified-2.7.0/test/test_memoryio.py b/lib-python/modified-2.7.0/test/test_memoryio.py
--- a/lib-python/modified-2.7.0/test/test_memoryio.py
+++ b/lib-python/modified-2.7.0/test/test_memoryio.py
@@ -612,7 +612,7 @@
         state = memio.__getstate__()
         self.assertEqual(len(state), 3)
         bytearray(state[0]) # Check if state[0] supports the buffer interface.
-        self.assertIsInstance(state[1], int)
+        self.assertIsInstance(state[1], (int, long))
         self.assert_(isinstance(state[2], dict) or state[2] is None)
         memio.close()
         self.assertRaises(ValueError, memio.__getstate__)


More information about the Pypy-commit mailing list