diff options
author | Laurent Peuch <cortex@worlddomination.be> | 2020-04-30 16:06:23 +0200 |
---|---|---|
committer | Laurent Peuch <cortex@worlddomination.be> | 2020-04-30 16:06:23 +0200 |
commit | e4e0dfe5630342b8983836fa2f038207ceeefd7c (patch) | |
tree | be8d36b1572933beb2fb0a43e1b0fc17ce8ddebf /test/unittest_deprecation.py | |
parent | 030b4e354371efe9acf15372636866619ec28c9c (diff) | |
download | logilab-common-e4e0dfe5630342b8983836fa2f038207ceeefd7c.tar.gz |
[deprecation] 'deprecated' function renamed 'callable_deprecated'
Diffstat (limited to 'test/unittest_deprecation.py')
-rw-r--r-- | test/unittest_deprecation.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unittest_deprecation.py b/test/unittest_deprecation.py index 09ec45a..597b021 100644 --- a/test/unittest_deprecation.py +++ b/test/unittest_deprecation.py @@ -79,19 +79,19 @@ class RawInputTC(TestCase): ['[logilab.common] class AnyClass is now available as unittest_deprecation.AnyClass']) def test_deprecated_func(self): - any_func = deprecation.deprecated()(self.mk_func()) + any_func = deprecation.callable_deprecated()(self.mk_func()) any_func() - any_func = deprecation.deprecated('message')(self.mk_func()) + any_func = deprecation.callable_deprecated('message')(self.mk_func()) any_func() self.assertEqual(self.messages, ['[logilab.common] The function "any_func" is deprecated', '[logilab.common] message']) def test_deprecated_decorator(self): - @deprecation.deprecated() + @deprecation.callable_deprecated() def any_func(): pass any_func() - @deprecation.deprecated('message') + @deprecation.callable_deprecated('message') def any_func(): pass any_func() |