Rev 144: Remove the test about handling bits near the size-of-long size. in http://bazaar.launchpad.net/~jameinel/meliae/old_pyrex_casting
John Arbash Meinel
john at arbash-meinel.com
Wed Jun 30 18:48:37 BST 2010
At http://bazaar.launchpad.net/~jameinel/meliae/old_pyrex_casting
------------------------------------------------------------
revno: 144
revision-id: john at arbash-meinel.com-20100630174819-o73s1wxzt6m42i58
parent: john at arbash-meinel.com-20100630172931-vpep50nsi0qbsh9i
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: old_pyrex_casting
timestamp: Wed 2010-06-30 12:48:19 -0500
message:
Remove the test about handling bits near the size-of-long size.
The issue is that the details depend on how hash() is implemented, and how
it handles overflow around the 32-bit or 64-bit barrier.
I don't know that it is actually interesting, and it is hard to get a
test that works on both 32 and 64 bit.
-------------- next part --------------
=== modified file 'meliae/tests/test__loader.py'
--- a/meliae/tests/test__loader.py 2010-01-08 22:51:33 +0000
+++ b/meliae/tests/test__loader.py 2010-06-30 17:48:19 +0000
@@ -14,6 +14,8 @@
"""Pyrex extension for tracking loaded objects"""
+import sys
+
from meliae import (
_loader,
warn,
@@ -22,7 +24,7 @@
class TestMemObjectCollection(tests.TestCase):
-
+
def test__init__(self):
moc = _loader.MemObjectCollection()
self.assertEqual(0, moc._active)
@@ -38,7 +40,6 @@
self.assertEqual(933, moc._test_lookup(933))
self.assertEqual(933, moc._test_lookup(933+1024))
self.assertEqual(933, moc._test_lookup(933L+1024L))
- self.assertEqual(933, moc._test_lookup(933L+2**32-1))
def test__len__(self):
moc = _loader.MemObjectCollection()
More information about the bazaar-commits
mailing list