Commits

James Bennett  committed 431f9d1

Shameless minor tweak on a function not meant to be called in tests. coverage.py now reports 100% test coverage.

  • Participants
  • Parent commits d4ed5b6

Comments (0)

Files changed (1)

File registration/tests/backends.py

         ``user_activated`` signal.
         
         """
-        def receiver(sender, **kwargs):
-            received_signals.append(kwargs.get('signal'))
+        receiver = lambda sender, **kwargs: received_signals.append(kwargs.get('signal'))
 
         received_signals = []
         signals.user_activated.connect(receiver, sender=self.backend.__class__)