tell on which class the assertion's failed tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 18 Feb 2009 11:46:35 +0100
branchtls-sprint
changeset 774 48cb1f42e79c
parent 773 eb846103be71
child 775 ed106bb2dcd3
tell on which class the assertion's failed
selectors.py
--- a/selectors.py	Wed Feb 18 11:46:23 2009 +0100
+++ b/selectors.py	Wed Feb 18 11:46:35 2009 +0100
@@ -384,7 +384,7 @@
                      object to create a relation with another)
     """
     def __init__(self, *expected):
-        assert expected
+        assert expected, self
         self.expected = frozenset(expected)
         
     @lltrace