diff options
author | Tim Graham <timograham@gmail.com> | 2017-01-21 13:20:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-21 13:20:17 -0500 |
commit | 9e6e32bf5dce69f3257fcbe4ce80839fb65ab3df (patch) | |
tree | 32df7e798d6cd84ca62a1ff8db1355cc06bd2d71 /django/test/utils.py | |
parent | 8249c5b38237172152835784bda2b55c2c7a672e (diff) | |
download | django-9e6e32bf5dce69f3257fcbe4ce80839fb65ab3df.tar.gz |
Refs #23919 -- Removed django.utils.decorators.available_attrs() usage.
It's only needed to workaround a bug on Python 2.
Diffstat (limited to 'django/test/utils.py')
-rw-r--r-- | django/test/utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/test/utils.py b/django/test/utils.py index a587e1fa96..2bd6bb4d0f 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -22,7 +22,6 @@ from django.db.models.options import Options from django.template import Template from django.test.signals import setting_changed, template_rendered from django.urls import get_script_prefix, set_script_prefix -from django.utils.decorators import available_attrs from django.utils.translation import deactivate try: @@ -370,7 +369,7 @@ class TestContextDecorator: raise TypeError('Can only decorate subclasses of unittest.TestCase') def decorate_callable(self, func): - @wraps(func, assigned=available_attrs(func)) + @wraps(func) def inner(*args, **kwargs): with self as context: if self.kwarg_name: |