[Pkg-bazaar-commits] ./bzr/unstable r848: doc
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:18:52 UTC 2009
------------------------------------------------------------
revno: 848
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Thu 2005-07-07 00:07:06 +1000
message:
doc
modified:
bzrlib/inventory.py
bzrlib/selftest/testhashcache.py
-------------- next part --------------
=== modified file 'bzrlib/inventory.py'
--- a/bzrlib/inventory.py 2005-06-28 05:33:40 +0000
+++ b/bzrlib/inventory.py 2005-07-06 14:07:06 +0000
@@ -476,7 +476,7 @@
def from_element(cls, elt):
"""Construct from XML Element
-
+
>>> inv = Inventory()
>>> inv.add(InventoryEntry('foo.c-123981239', 'foo.c', 'file', ROOT_ID))
>>> elt = inv.to_element()
@@ -484,6 +484,7 @@
>>> inv2 == inv
True
"""
+ # XXXX: doctest doesn't run this properly under python2.3
assert elt.tag == 'inventory'
o = cls()
for e in elt:
=== modified file 'bzrlib/selftest/testhashcache.py'
--- a/bzrlib/selftest/testhashcache.py 2005-07-06 10:07:31 +0000
+++ b/bzrlib/selftest/testhashcache.py 2005-07-06 14:07:06 +0000
@@ -81,7 +81,7 @@
self.assertEquals(hc.danger_count, 1)
self.assertEquals(hc.get_sha1('subdir'), None)
-
+
TEST_CLASSES = [
More information about the Pkg-bazaar-commits
mailing list