[mnet-devel] BW unit tests
icepick at icepick.info
icepick at icepick.info
Fri Feb 7 05:59:42 GMT 2003
Hi,
I fixed the errors we were getting before with the BW unittests in _new.
Now I've hit another snag:
2003-02-07_05:54:00 (ERROR) DoQ caught an exception. The stack trace from
when this task was added to the DoQ is: None. exception: <AttributeError:
"Widget instance has no attribute 'items'">, the stack trace follows:
2003-02-07_05:54:00 () Traceback (most recent call last):
2003-02-07_05:54:00 () File "pyutil/DoQ.py", line 305, in _do_thing
2003-02-07_05:54:00 () result = apply(func, args, kwargs)
2003-02-07_05:54:00 () File "mnetlib/MetaTrackerLib.py", line 769, in
cacheem_and_call_all_waiters
2003-02-07_05:54:00 () waiterfunc(widget, outcome)
2003-02-07_05:54:00 () File "mnetlib/MetaTrackerLib.py", line 690, in
subset_results_and_call_back
2003-02-07_05:54:00 () apply(callback, (widget, resultdict,))
2003-02-07_05:54:00 () File
"/home/myers/mnet/mnet/mnetlib/filesystem/BlockWrangler.py", line 534, in
sort_and_filter_callback
2003-02-07_05:54:00 () peers =
self.sort_peers_by_queries(self.mtm._handicapper.sort_by_preference_from_dict_of_Peers(outcome,
"do you have blobs", {}))
2003-02-07_05:54:00 () File
"/home/myers/mnet/mnet/mnetlib/test/unittestutil.py", line 187, in
sort_by_preference_from_dict_of_Peers
2003-02-07_05:54:00 () items = counterparties.items()
2003-02-07_05:54:00 () AttributeError: Widget instance has no attribute
'items'
My question to zooko: how much does BW need to knoe about the internals of
MojoTransactionManger? This weighs in on how much we can say the network
code is seprate from the app code.
Also is the fact that BW is calling the handcapper sort method on a Widget
object, when it's expecting a dict, seems to be a bug in BW or the unittest
helpers...
icepick...
--
You're just jealous because the voices only talk to me.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel
More information about the Mnet-devel
mailing list