Rev 127: notes on some tests that are failing on my py25 setup. in http://bazaar.launchpad.net/~meliae-dev/meliae/trunk
John Arbash Meinel
john at arbash-meinel.com
Wed Dec 30 22:12:43 GMT 2009
At http://bazaar.launchpad.net/~meliae-dev/meliae/trunk
------------------------------------------------------------
revno: 127
revision-id: john at arbash-meinel.com-20091230221241-49urd9xvupm0z6p3
parent: john at arbash-meinel.com-20091230163356-inea77kwzx6kwjpp
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: trunk
timestamp: Wed 2009-12-30 16:12:41 -0600
message:
notes on some tests that are failing on my py25 setup.
-------------- next part --------------
=== modified file 'meliae/tests/test_loader.py'
--- a/meliae/tests/test_loader.py 2009-10-22 22:05:00 +0000
+++ b/meliae/tests/test_loader.py 2009-12-30 22:12:41 +0000
@@ -256,6 +256,9 @@
self.assertFalse(15 in manager.objs)
def test_expand_refs_as_dict(self):
+ # TODO: This test fails if simplejson is not installed, because the
+ # regex extractor does not cast to integers (they stay as
+ # strings). We could fix the test, or fix the extractor.
manager = loader.load(_instance_dump, show_prog=False)
as_dict = manager.refs_as_dict(manager[15])
self.assertEqual({1: 'c', 'b': 'c'}, as_dict)
@@ -266,5 +269,8 @@
'd': manager[12]}, manager.refs_as_dict(manager[1]))
def test_expand_refs_as_list(self):
+ # TODO: This test fails if simplejson is not installed, because the
+ # regex extractor does not cast to integers (they stay as
+ # strings). We could fix the test, or fix the extractor.
manager = loader.load(_instance_dump, show_prog=False)
self.assertEqual([2], manager.refs_as_list(manager[12]))
More information about the bazaar-commits
mailing list