summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2009-11-17 02:13:26 +0000
committerJustin Bronn <jbronn@gmail.com>2009-11-17 02:13:26 +0000
commitcd0d7e676db60dedfc231e013aa60db516831223 (patch)
tree4724d389017c5111dba20f85a733f6ea6bd05dd2
parent32d0730b8965b272368763d75803fa0472d97177 (diff)
As promised, removed the `_DeprecatedTestModule` and its instances.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/gis/tests/__init__.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/django/contrib/gis/tests/__init__.py b/django/contrib/gis/tests/__init__.py
index 532dcffeba..5b172a3cef 100644
--- a/django/contrib/gis/tests/__init__.py
+++ b/django/contrib/gis/tests/__init__.py
@@ -169,20 +169,3 @@ def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[], suite=
# Returning the total failures and errors
return len(result.failures) + len(result.errors)
-
-# Class for creating a fake module with a run method. This is for the
-# GEOS and GDAL tests that were moved to their respective modules.
-class _DeprecatedTestModule(object):
- def __init__(self, mod_name):
- self.mod_name = mod_name
-
- def run(self):
- from warnings import warn
- warn('This test module is deprecated because it has moved to ' \
- '`django.contrib.gis.%s.tests` and will disappear in 1.2.' %
- self.mod_name, DeprecationWarning)
- tests = import_module('django.contrib.gis.%s.tests' % self.mod_name)
- tests.run()
-
-test_geos = _DeprecatedTestModule('geos')
-test_gdal = _DeprecatedTestModule('gdal')