diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-08-06 15:32:46 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-08-06 15:32:46 +0000 |
| commit | 34a3bd52255a2253696b74b2d76133aace839fd2 (patch) | |
| tree | 73bc39cc2e0a93925b1e8796b18224192e19e4a3 /django/test/utils.py | |
| parent | d06b474251c979c512a966a7fb41cd8a06487c14 (diff) | |
Major refactoring of django.dispatch with an eye towards speed. The net result is that signals are up to 90% faster.
Though some attempts and backwards-compatibility were made, speed trumped compatibility. Thus, as usual, check BackwardsIncompatibleChanges for the complete list of backwards-incompatible changes.
Thanks to Jeremy Dunck and Keith Busell for the bulk of the work; some ideas from Brian Herring's previous work (refs #4561) were incorporated.
Documentation is, sigh, still forthcoming.
Fixes #6814 and #3951 (with the new dispatch_uid argument to connect).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/test/utils.py')
| -rw-r--r-- | django/test/utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/test/utils.py b/django/test/utils.py index 03f40a8df7..733307a1c0 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -3,7 +3,6 @@ from django.conf import settings from django.db import connection, get_creation_module from django.core import mail from django.core.management import call_command -from django.dispatch import dispatcher from django.test import signals from django.template import Template from django.utils.translation import deactivate @@ -17,7 +16,7 @@ def instrumented_test_render(self, context): An instrumented Template render method, providing a signal that can be intercepted by the test system Client """ - dispatcher.send(signal=signals.template_rendered, sender=self, template=self, context=context) + signals.template_rendered.send(sender=self, template=self, context=context) return self.nodelist.render(context) class TestSMTPConnection(object): |
