Author: jbronn Date: 2009-11-16 20:13:26 -0600 (Mon, 16 Nov 2009) New Revision: 11743
Modified: django/trunk/django/contrib/gis/tests/__init__.py Log: As promised, removed the `_DeprecatedTestModule` and its instances. Modified: django/trunk/django/contrib/gis/tests/__init__.py =================================================================== --- django/trunk/django/contrib/gis/tests/__init__.py 2009-11-16 18:49:00 UTC (rev 11742) +++ django/trunk/django/contrib/gis/tests/__init__.py 2009-11-17 02:13:26 UTC (rev 11743) @@ -169,20 +169,3 @@ # 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') -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=.