MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_replace_paths

Method test_replace_paths

Lib/test/test_modulefinder.py:395–403  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

393 # TODO: RUSTPYTHON; panics at code.rs with 'called Option::unwrap() on a None value'
394 @unittest.skip("TODO: RUSTPYTHON; panics in co_filename replacement")
395 def test_replace_paths(self):
396 old_path = os.path.join(self.test_dir, 'a', 'module.py')
397 new_path = os.path.join(self.test_dir, 'a', 'spam.py')
398 with support.captured_stdout() as output:
399 self._do_test(maybe_test, debug=2,
400 replace_paths=[(old_path, new_path)])
401 output = output.getvalue()
402 expected = "co_filename %r changed to %r" % (old_path, new_path)
403 self.assertIn(expected, output)
404
405 def test_extended_opargs(self):
406 extended_opargs_test = [

Callers

nothing calls this directly

Calls 4

_do_testMethod · 0.95
assertInMethod · 0.80
joinMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected