Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties that use operator.attrgetter as their getter cause an error #357

Closed
apotterri opened this issue Jul 29, 2024 · 0 comments · Fixed by #358
Closed

Properties that use operator.attrgetter as their getter cause an error #357

apotterri opened this issue Jul 29, 2024 · 0 comments · Fixed by #358
Assignees
Labels
bug Something isn't working

Comments

@apotterri
Copy link
Contributor

This was originally discovered when trying to run tests in django:

ERROR: test_works_normally (generic_relations.tests.ProxyRelatedModelTest)
When for_concrete_model is False, we should still be able to get
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/kgilpin/source/land-of-apps/django/venv/lib/python3.10/site-packages/_appmap/wrapt/wrappers.py", line 719, in __call__
    return self._self_wrapper(self.__wrapped__, self._self_instance,
  File "/Users/kgilpin/source/land-of-apps/django/venv/lib/python3.10/site-packages/_appmap/unittest.py", line 39, in callTestMethod
    wrapped(test_method, **kwargs)
  File "/usr/local/Cellar/[email protected]/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()
...
File "/Users/kgilpin/source/land-of-apps/django/venv/lib/python3.10/site-packages/_appmap/instrument.py", line 88, in call_instrumented
    call_event = f.make_call_event(parameters=params)
  File "/Users/kgilpin/source/land-of-apps/django/venv/lib/python3.10/site-packages/_appmap/event.py", line 318, in __init__
    self._fqfn = FqFnName(fn)
  File "/Users/kgilpin/source/land-of-apps/django/venv/lib/python3.10/site-packages/_appmap/utils.py", line 85, in __init__
    qualname = fn.__qualname__
AttributeError: 'operator.attrgetter' object has no attribute '__qualname__'
@apotterri apotterri added the bug Something isn't working label Jul 29, 2024
@apotterri apotterri self-assigned this Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant