summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2010-10-21 14:56:33 +0000
committerLuke Plant <L.Plant.98@cantab.net>2010-10-21 14:56:33 +0000
commitdf0bb3c46312fe241d0b93b7969a60c01c449e7a (patch)
tree2a1d7d77d0a3ebb02fed29c97aa357144a9d73ff
parent7e19641b0359c23105cc27eebd9ccb1963546f2a (diff)
Removed old code with Python 2.3 compatibility
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/regressiontests/decorators/tests.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/regressiontests/decorators/tests.py b/tests/regressiontests/decorators/tests.py
index 1f0551eb79..b2c0c0128b 100644
--- a/tests/regressiontests/decorators/tests.py
+++ b/tests/regressiontests/decorators/tests.py
@@ -56,10 +56,7 @@ class DecoratorsTest(TestCase):
Tests that django decorators set certain attributes of the wrapped
function.
"""
- # Only check __name__ on Python 2.4 or later since __name__ can't be
- # assigned to in earlier Python versions.
- if version_info[0] >= 2 and version_info[1] >= 4:
- self.assertEquals(fully_decorated.__name__, 'fully_decorated')
+ self.assertEquals(fully_decorated.__name__, 'fully_decorated')
self.assertEquals(fully_decorated.__doc__, 'Expected __doc__')
self.assertEquals(fully_decorated.__dict__['anything'], 'Expected __dict__')