summaryrefslogtreecommitdiff
path: root/tests/deprecation
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@memset.com>2013-10-22 11:21:07 +0100
committerAlasdair Nicol <alasdair@memset.com>2013-10-23 13:45:03 +0100
commitc3aa2948c6c14862407501290571f858ccf45b07 (patch)
tree6f0812d7db0fe2f5a6bf9e07f20ba7d442ce8789 /tests/deprecation
parent317040a73b77be8f8210801793b2ce6d1a69301e (diff)
downloaddjango-c3aa2948c6c14862407501290571f858ccf45b07.tar.gz
Fixed #21298 -- Fixed E301 pep8 warnings
Diffstat (limited to 'tests/deprecation')
-rw-r--r--tests/deprecation/tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/deprecation/tests.py b/tests/deprecation/tests.py
index 3692683cae..61baf5ca12 100644
--- a/tests/deprecation/tests.py
+++ b/tests/deprecation/tests.py
@@ -26,6 +26,7 @@ class RenameMethodsTests(SimpleTestCase):
"""
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('always')
+
class Manager(six.with_metaclass(RenameManagerMethods)):
def old(self):
pass
@@ -40,6 +41,7 @@ class RenameMethodsTests(SimpleTestCase):
"""
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('ignore')
+
class Manager(six.with_metaclass(RenameManagerMethods)):
def new(self):
pass
@@ -59,6 +61,7 @@ class RenameMethodsTests(SimpleTestCase):
"""
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('ignore')
+
class Manager(six.with_metaclass(RenameManagerMethods)):
def old(self):
pass
@@ -79,9 +82,11 @@ class RenameMethodsTests(SimpleTestCase):
"""
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('ignore')
+
class Renamed(six.with_metaclass(RenameManagerMethods)):
def new(self):
pass
+
class Deprecated(Renamed):
def old(self):
super(Deprecated, self).old()
@@ -108,9 +113,11 @@ class RenameMethodsTests(SimpleTestCase):
"""
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('ignore')
+
class Deprecated(six.with_metaclass(RenameManagerMethods)):
def old(self):
pass
+
class Renamed(Deprecated):
def new(self):
super(Renamed, self).new()
@@ -132,15 +139,19 @@ class RenameMethodsTests(SimpleTestCase):
"""
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('ignore')
+
class Renamed(six.with_metaclass(RenameManagerMethods)):
def new(self):
pass
+
class RenamedMixin(object):
def new(self):
super(RenamedMixin, self).new()
+
class DeprecatedMixin(object):
def old(self):
super(DeprecatedMixin, self).old()
+
class Deprecated(DeprecatedMixin, RenamedMixin, Renamed):
pass
warnings.simplefilter('always')