Author: Ronan Lamy <ronan.l...@gmail.com> Branch: kill-flowobjspace Changeset: r60571:448681fc6a2e Date: 2013-01-27 22:25 +0000 http://bitbucket.org/pypy/pypy/changeset/448681fc6a2e/
Log: flowspace: test kwarg call diff --git a/rpython/flowspace/test/test_objspace.py b/rpython/flowspace/test/test_objspace.py --- a/rpython/flowspace/test/test_objspace.py +++ b/rpython/flowspace/test/test_objspace.py @@ -716,6 +716,18 @@ graph = self.codetest(f2) assert 'Dict-unpacking' in str(excinfo.value) + def test_kwarg_call(self): + def g(x): + return x + def f(): + return g(x=2) + graph = self.codetest(f) + for block in graph.iterblocks(): + for op in block.operations: + assert op.opname == "call_args" + assert op.args == map(Constant, + [g, (0, ('x',), False, False), 2]) + def test_catch_importerror_1(self): def f(): try: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit