def test_lambda_list_keywords_mixed():
 can_compile(u'(fn (x &rest xs &kwargs kw) (list x xs kw))')
 cant_compile(u'(fn (x &rest xs &fasfkey {bar "baz"}))')
 if PY3:
  can_compile(u'(fn [x &rest xs &kwargs kwxs &kwonly kwoxs]  (list x xs kwxs kwoxs))')

def test_lambda_list_keywords_mixed ( ) : can_compile ( u'(fn (x &rest xs &kwargs kw) (list x xs kw))' ) cant_compile ( u'(fn (x &rest xs &fasfkey {bar "baz"}))' ) if PY3 : can_compile ( u'(fn [x &rest xs &kwargs kwxs &kwonly kwoxs]  (list x xs kwxs kwoxs))' )
ensure we can mix them up .