Skip to content

Commit

Permalink
[py3] Removed map() calls used for side-effects only
Browse files Browse the repository at this point in the history
  • Loading branch information
akaariai committed Aug 15, 2012
1 parent f8ea12f commit 5d01f3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion django/contrib/gis/gdal/tests/__init__.py
Expand Up @@ -19,7 +19,8 @@
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):
Expand Down
3 changes: 2 additions & 1 deletion tests/modeltests/proxy_model_inheritance/tests.py
Expand Up @@ -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
Expand Down

0 comments on commit 5d01f3c

Please sign in to comment.