Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed old code with Python 2.3 compatibility

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit df0bb3c46312fe241d0b93b7969a60c01c449e7a 1 parent 7e19641
@spookylukey spookylukey authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 tests/regressiontests/decorators/tests.py
View
5 tests/regressiontests/decorators/tests.py
@@ -56,10 +56,7 @@ def test_attributes(self):
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__')
Please sign in to comment.
Something went wrong with that request. Please try again.