From c3881944e8651ad98e29561154186e87928ca319 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Sun, 26 Jan 2014 14:32:01 -0500 Subject: [PATCH] Fixed some missing/extraneous new line warnings. --- django/apps/config.py | 1 - django/test/utils.py | 1 - tests/apps/namespace_package_base/nsapp/apps.py | 1 + tests/apps/tests.py | 1 - 4 files changed, 1 insertion(+), 3 deletions(-) diff --git a/django/apps/config.py b/django/apps/config.py index e25178e25d..1334da4c03 100644 --- a/django/apps/config.py +++ b/django/apps/config.py @@ -128,7 +128,6 @@ class AppConfig(object): # Entry is a path to an app config class. return cls(app_name, app_module) - def get_model(self, model_name): """ Returns the model with the given case-insensitive model_name. diff --git a/django/test/utils.py b/django/test/utils.py index 7f47d29844..bc3f823a3a 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -528,7 +528,6 @@ requires_tz_support = skipUnless(TZ_SUPPORT, "time zone, but your operating system isn't able to do that.") - @contextmanager def extend_sys_path(*paths): """Context manager to temporarily add paths to sys.path.""" diff --git a/tests/apps/namespace_package_base/nsapp/apps.py b/tests/apps/namespace_package_base/nsapp/apps.py index 9949054b31..3e864ae5b4 100644 --- a/tests/apps/namespace_package_base/nsapp/apps.py +++ b/tests/apps/namespace_package_base/nsapp/apps.py @@ -3,6 +3,7 @@ import os from django.apps import AppConfig from django.utils._os import upath + class NSAppConfig(AppConfig): name = 'nsapp' path = upath(os.path.dirname(__file__)) diff --git a/tests/apps/tests.py b/tests/apps/tests.py index 5ad4ef0b72..d09757c7bd 100644 --- a/tests/apps/tests.py +++ b/tests/apps/tests.py @@ -201,7 +201,6 @@ class AppsTests(TestCase): self.assertEqual(new_apps.get_model("apps", "SouthPonies"), temp_model) - @skipUnless( sys.version_info > (3, 3, 0), "Namespace packages sans __init__.py were added in Python 3.3")