From: W. Trevor King Date: Wed, 12 May 2010 15:23:03 +0000 (-0400) Subject: Removed hooke.hooke.TestHooke. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=95839299461c0472b75f1cb9b8ba0ca582806e60;p=hooke.git Removed hooke.hooke.TestHooke. I couldn't find a flexible enough equality comparison between the two Hooke instances. It doesn't seem worth it to add .__eq__ or .__cmp__ methods to all of my classes just to test Queue-proof-ness. Maybe I'm just lazy... Anyhow, the original problem case now works: $echo 'debug' | python bin/hooke This is Hooke, version 0.9.0.devel (Kenzo) COPYRIGHT ---- hooke> Success ... --- diff --git a/hooke/hooke.py b/hooke/hooke.py index ed6f8ba..2de41f5 100644 --- a/hooke/hooke.py +++ b/hooke/hooke.py @@ -81,19 +81,5 @@ def main(): finally: app.close() -class TestHooke (unittest.TestCase): - def test_queue_safe(self): - """Ensure :class:`Hooke` is :class:`multiprocessing.Queue`-safe. - """ - from multiprocessing import Queue - q = Queue() - a = Hooke() - q.put(a) - b = q.get(a) - for attribute_name in dir(a): - a_attr = getattr(a, attribute_name) - b_attr = getattr(b, attribute_name) - self.failUnless(a_attr == b_attr) - if __name__ == '__main__': main()