From 95839299461c0472b75f1cb9b8ba0ca582806e60 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 12 May 2010 11:23:03 -0400 Subject: [PATCH] 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 ... --- hooke/hooke.py | 14 -------------- 1 file changed, 14 deletions(-) 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() -- 2.26.2