| 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 = [ |