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

Method test_replace_non_str_kwarg

Lib/test/test_ast/test_ast.py:1443–1447  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1441
1442 @unittest.expectedFailure # TODO: RUSTPYTHON; Wrong error message
1443 def test_replace_non_str_kwarg(self):
1444 node = ast.Name(id="x")
1445 errmsg = "got an unexpected keyword argument <object object"
1446 with self.assertRaisesRegex(TypeError, errmsg):
1447 node.__replace__(**{object(): "y"})
1448
1449
1450class ASTHelpers_Test(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

assertRaisesRegexMethod · 0.80
__replace__Method · 0.45

Tested by

no test coverage detected