mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Removed old code with Python 2.3 compatibility
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		
							parent
							
								
									7e19641b03
								
							
						
					
					
						commit
						df0bb3c463
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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__')
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue