From 2db34d2307943491f651a8342b35c47699109385 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 18 Oct 2010 16:08:25 +0000 Subject: [PATCH] Fixed an naming problem with r14258. Thanks to Alex for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14260 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/client.py | 3 ++- django/test/testcases.py | 1 + django/test/utils.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/django/test/client.py b/django/test/client.py index 0625f23f79bc3..1baf6176edd15 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -26,7 +26,8 @@ from django.db import transaction, close_connection from django.test.utils import ContextList -all = ('Client', 'RequestFactory', 'encode_file', 'encode_multipart') +__all__ = ('Client', 'RequestFactory', 'encode_file', 'encode_multipart') + BOUNDARY = 'BoUnDaRyStRiNg' MULTIPART_CONTENT = 'multipart/form-data; boundary=%s' % BOUNDARY diff --git a/django/test/testcases.py b/django/test/testcases.py index e34262bfe556f..c8f712d64bc47 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -18,6 +18,7 @@ __all__ = ('DocTestRunner', 'OutputChecker', 'TestCase', 'TransactionTestCase', 'skipIfDBFeature', 'skipUnlessDBFeature') + try: all except NameError: diff --git a/django/test/utils.py b/django/test/utils.py index d2649ae96b2a6..063e30297f566 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -8,9 +8,10 @@ from django.template import Template from django.utils.translation import deactivate -all = ('Approximate', 'ContextList', 'setup_test_environment', +__all__ = ('Approximate', 'ContextList', 'setup_test_environment', 'teardown_test_environment', 'get_runner') + class Approximate(object): def __init__(self, val, places=7): self.val = val