diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-05-12 22:32:43 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-05-12 22:35:21 +0200 |
| commit | bbb12581dbd91945857cb4731368671776d4d388 (patch) | |
| tree | 0dc8ebe5f5a9c723fee844182843e83821d2d7b6 /tests | |
| parent | 33ffd28d76d775c970691a3da282e98b349735c4 (diff) | |
Replaced im_func and im_self by __func__ and __self__.
The new names are Python 3 compatible.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/decorators/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/decorators/tests.py b/tests/regressiontests/decorators/tests.py index 0c5b2e97da..dceaa62abc 100644 --- a/tests/regressiontests/decorators/tests.py +++ b/tests/regressiontests/decorators/tests.py @@ -220,7 +220,7 @@ class MethodDecoratorTests(TestCase): self.assertEqual(getattr(Test.method, 'myattr2', False), True) self.assertEqual(Test.method.__doc__, 'A method') - self.assertEqual(Test.method.im_func.__name__, 'method') + self.assertEqual(Test.method.__func__.__name__, 'method') class XFrameOptionsDecoratorsTests(TestCase): |
