(self)
| 328 | |
| 329 | @unittest.skipIf(pypy, "different errors for PyPy") |
| 330 | def test_current_function_cpython(self): |
| 331 | self.set_input_line("INPUTLINE") |
| 332 | self.assert_get_source_error_for_current_function( |
| 333 | collections.defaultdict.copy, "No source code found for INPUTLINE" |
| 334 | ) |
| 335 | if sys.version_info[:2] >= (3, 13): |
| 336 | self.assert_get_source_error_for_current_function( |
| 337 | collections.defaultdict, "source code not available" |
| 338 | ) |
| 339 | else: |
| 340 | self.assert_get_source_error_for_current_function( |
| 341 | collections.defaultdict, "could not find class definition" |
| 342 | ) |
| 343 | |
| 344 | def test_current_line(self): |
| 345 | self.repl.interp.locals["a"] = socket.socket |
nothing calls this directly
no test coverage detected