Rev 4777: clean up the test case a little bit. in http://bazaar.launchpad.net/~jameinel/bzr/2.1-static-tuple-btree-string-intern

John Arbash Meinel john at arbash-meinel.com
Wed Oct 14 15:04:03 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr/2.1-static-tuple-btree-string-intern

------------------------------------------------------------
revno: 4777
revision-id: john at arbash-meinel.com-20091014140356-f8819b4n4lygkf3u
parent: john at arbash-meinel.com-20091014135409-hsqfid39yburyncr
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1-static-tuple-btree-string-intern
timestamp: Wed 2009-10-14 09:03:56 -0500
message:
  clean up the test case a little bit.
-------------- next part --------------
=== modified file 'bzrlib/tests/test__static_tuple.py'
--- a/bzrlib/tests/test__static_tuple.py	2009-10-13 22:02:52 +0000
+++ b/bzrlib/tests/test__static_tuple.py	2009-10-14 14:03:56 +0000
@@ -281,11 +281,9 @@
 
     def test_compare_mixed_depths(self):
         stuple = self.module.StaticTuple
-        k1 = stuple(stuple('launchpad at pqm.canonical.com-20080513123945-5rksdb3kzaszgujl',),
-                    stuple('bjorn at canonical.com-20080513090729-gxckcc7gv01txwl6',))
-        k2 = stuple(stuple(stuple('tim.penhey at canonical.com-20080805095941-04dh2yw94fjtialz',),
-                           stuple('launchpad at pqm.canonical.com-20080805101011-jt59xexr9sdkcjiu',)),
-                    stuple('bjorn at canonical.com-20080513090729-gxckcc7gv01txwl6',))
+        k1 = stuple(stuple('a',), stuple('b',))
+        k2 = stuple(stuple(stuple('c',), stuple('d',)),
+                    stuple('b',))
         # This requires comparing a StaticTuple to a 'string', and then
         # interpreting that value in the next higher StaticTuple. This used to
         # generate a PyErr_BadIternalCall. We now fall back to *something*.



More information about the bazaar-commits mailing list