diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-11-01 19:05:04 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-11-01 19:05:04 -0400 |
commit | a88528bc843d9293636b30165be07cd4f241c500 (patch) | |
tree | 66c61e13e8cfd2d548515ba9fae84a0e71e3618e | |
parent | 6ac0fd892e24d319272c0f85ffccaf287e8be811 (diff) | |
download | python-mop-a88528bc843d9293636b30165be07cd4f241c500.tar.gz python-mop-a88528bc843d9293636b30165be07cd4f241c500.zip |
stop using slots directly here
-rw-r--r-- | t/overrides_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/overrides_test.py b/t/overrides_test.py index 3993af7..eec0247 100644 --- a/t/overrides_test.py +++ b/t/overrides_test.py @@ -9,9 +9,9 @@ from . import InMemoryDatabase # obscure the implementation and make it not as easy to follow (we would have # to manage call stacks ourselves), and so we just do this instead for now def call_method_at_class(c, method_name, invocant, *args, **kwargs): - return c.all_methods()[method_name].slots["body"]( - invocant, *args, **kwargs - ) + method = c.all_methods()[method_name] + attr = method.metaclass.all_attributes()["body"] + return attr.value(method)(invocant, *args, **kwargs) class OverridesTest(unittest.TestCase): def test_accessor_generation(self): |