Rev 18: Allow for python id()s to be negative. in http://bzr.arbash-meinel.com/plugins/pybloom

John Arbash Meinel john at arbash-meinel.com
Thu Apr 26 23:06:58 BST 2007


At http://bzr.arbash-meinel.com/plugins/pybloom

------------------------------------------------------------
revno: 18
revision-id: john at arbash-meinel.com-20070426220655-cib91nwztwll1ld2
parent: john at arbash-meinel.com-20070426220627-ddxaasrsdlxgs8vw
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: pybloom
timestamp: Thu 2007-04-26 17:06:55 -0500
message:
  Allow for python id()s to be negative.
modified:
  test_pybloom.py                test_pybloom.py-20061015235457-3ygcmfqjet8yfq0f-2
-------------- next part --------------
=== modified file 'test_pybloom.py'
--- a/test_pybloom.py	2007-03-27 15:56:25 +0000
+++ b/test_pybloom.py	2007-04-26 22:06:55 +0000
@@ -141,7 +141,7 @@
     def test_str(self):
         bloom = self.bloom_class(128)
         self.assertContainsRe(str(bloom),
-            r'^<%s @ 0x[0-9a-fA-F]+: 128 bits, 0 entries,'
+            r'^<%s @ 0x-?[0-9a-fA-F]+: 128 bits, 0 entries,'
             r' 0\.0 b/e, 0\.0%% gray>$'
             % (self.bloom_class.__name__,))
         if self.bloom_class is pybloom.Bloom:
@@ -149,7 +149,7 @@
             return
         bloom.insert('')
         self.assertContainsRe(str(bloom),
-            r'^<%s @ 0x[0-9a-fA-F]+: 128 bits, 1 entries,'
+            r'^<%s @ 0x-?[0-9a-fA-F]+: 128 bits, 1 entries,'
             r' 128.0 b/e, \d\.\d%% gray>$'
             % (self.bloom_class.__name__,))
 



More information about the bazaar-commits mailing list