MCPcopy Index your code
hub / github.com/bpython/bpython / test_current_function_cpython

Method test_current_function_cpython

bpython/test/test_repl.py:330–342  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Tested by

no test coverage detected