Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[py3] Removed map() calls used for side-effects only

  • Loading branch information...
commit 5d01f3caea348fdf99312ba0ee1ab668f2f81c3c 1 parent f8ea12f
@akaariai akaariai authored
View
3  django/contrib/gis/gdal/tests/__init__.py
@@ -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):
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.