MCPcopy Index your code
hub / github.com/python/cpython / test_attr

Method test_attr

Lib/test/test_monitoring.py:2016–2021  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2014 return d["f"], expected
2015
2016 def test_attr(self):
2017 nonopt_func, nonopt_expected = self._super_attr(optimized=False)
2018 opt_func, opt_expected = self._super_attr(optimized=True)
2019
2020 self.check_events(nonopt_func, recorders=self.RECORDERS, expected=nonopt_expected)
2021 self.check_events(opt_func, recorders=self.RECORDERS, expected=opt_expected)
2022
2023 def test_vs_other_type_call(self):
2024 code_template = textwrap.dedent("""

Callers

nothing calls this directly

Calls 2

_super_attrMethod · 0.95
check_eventsMethod · 0.45

Tested by

no test coverage detected