Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

As promised, removed the `_DeprecatedTestModule` and its instances.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cd0d7e676db60dedfc231e013aa60db516831223 1 parent 32d0730
Justin Bronn authored November 17, 2009

Showing 1 changed file with 0 additions and 17 deletions. Show diff stats Hide diff stats

  1. 17  django/contrib/gis/tests/__init__.py
17  django/contrib/gis/tests/__init__.py
@@ -169,20 +169,3 @@ def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[], suite=
169 169
 
170 170
     # Returning the total failures and errors
171 171
     return len(result.failures) + len(result.errors)
172  
-
173  
-# Class for creating a fake module with a run method.  This is for the
174  
-# GEOS and GDAL tests that were moved to their respective modules.
175  
-class _DeprecatedTestModule(object):
176  
-    def __init__(self, mod_name):
177  
-        self.mod_name = mod_name
178  
-
179  
-    def run(self):
180  
-        from warnings import warn
181  
-        warn('This test module is deprecated because it has moved to ' \
182  
-             '`django.contrib.gis.%s.tests` and will disappear in 1.2.' %
183  
-             self.mod_name, DeprecationWarning)
184  
-        tests = import_module('django.contrib.gis.%s.tests' % self.mod_name)
185  
-        tests.run()
186  
-
187  
-test_geos = _DeprecatedTestModule('geos')
188  
-test_gdal = _DeprecatedTestModule('gdal')

0 notes on commit cd0d7e6

Please sign in to comment.
Something went wrong with that request. Please try again.