From 5d01f3caea348fdf99312ba0ee1ab668f2f81c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Wed, 15 Aug 2012 13:02:50 +0300 Subject: [PATCH] [py3] Removed map() calls used for side-effects only --- django/contrib/gis/gdal/tests/__init__.py | 3 ++- tests/modeltests/proxy_model_inheritance/tests.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/django/contrib/gis/gdal/tests/__init__.py b/django/contrib/gis/gdal/tests/__init__.py index eb72a38775d..262d294a431 100644 --- a/django/contrib/gis/gdal/tests/__init__.py +++ b/django/contrib/gis/gdal/tests/__init__.py @@ -19,7 +19,8 @@ test_suites = [test_driver.suite(), def suite(): "Builds a test suite for the GDAL tests." s = TestSuite() - map(s.addTest, test_suites) + for test_suite in test_suites: + s.addTest(test_suite) return s def run(verbosity=1): diff --git a/tests/modeltests/proxy_model_inheritance/tests.py b/tests/modeltests/proxy_model_inheritance/tests.py index 061cdc7e918..39fee7ee6dc 100644 --- a/tests/modeltests/proxy_model_inheritance/tests.py +++ b/tests/modeltests/proxy_model_inheritance/tests.py @@ -24,7 +24,8 @@ class ProxyModelInheritanceTests(TransactionTestCase): def setUp(self): self.old_sys_path = sys.path[:] sys.path.append(os.path.dirname(os.path.abspath(__file__))) - map(load_app, settings.INSTALLED_APPS) + for app in settings.INSTALLED_APPS: + load_app(app) def tearDown(self): sys.path = self.old_sys_path