Rev 126: Simple test of what happens if size == -1 in http://bazaar.launchpad.net/~meliae-dev/meliae/trunk
John Arbash Meinel
john at arbash-meinel.com
Wed Dec 30 16:34:23 GMT 2009
At http://bazaar.launchpad.net/~meliae-dev/meliae/trunk
------------------------------------------------------------
revno: 126
revision-id: john at arbash-meinel.com-20091230163356-inea77kwzx6kwjpp
parent: john at arbash-meinel.com-20091230162703-zkngtx5395r3vz6h
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: trunk
timestamp: Wed 2009-12-30 10:33:56 -0600
message:
Simple test of what happens if size == -1
-------------- next part --------------
=== modified file 'meliae/tests/test__scanner.py'
--- a/meliae/tests/test__scanner.py 2009-12-30 16:25:15 +0000
+++ b/meliae/tests/test__scanner.py 2009-12-30 16:33:56 +0000
@@ -166,6 +166,9 @@
return self.size
self.assertSizeOf(0, CustomSize(10), 10, has_gc=True)
self.assertSizeOf(0, CustomSize(20), 20, has_gc=True)
+ # If we get '-1' as the size we assume something is wrong, and fall
+ # back to the original size
+ self.assertSizeOf(4, CustomSize(-1), has_gc=True)
def _string_to_json(s):
More information about the bazaar-commits
mailing list