(self)
| 356 | |
| 357 | class FunctionDictsTest(FuncAttrsTest): |
| 358 | def test_setting_dict_to_invalid(self): |
| 359 | self.cannot_set_attr(self.b, '__dict__', None, TypeError) |
| 360 | from collections import UserDict |
| 361 | d = UserDict({'known_attr': 7}) |
| 362 | self.cannot_set_attr(self.fi.a.__func__, '__dict__', d, TypeError) |
| 363 | |
| 364 | def test_setting_dict_to_valid(self): |
| 365 | d = {'known_attr': 7} |
nothing calls this directly
no test coverage detected