New issue 1957: PyPy3: TypeError: Incorrect exception message
https://bitbucket.org/pypy/pypy/issue/1957/pypy3-typeerror-incorrect-exception

Benjamen Keroack:

Given the following test code:

```
#!python

def pxn_qxn(*, p, q, **kwargs):
    return p + q

pxn_qxn(p = 1)
```

CPython 3.4.2 produces the following error:

```
#!bash
TypeError: pxn_qxn() missing 1 required keyword-only argument: 'q'
```

PyPy3 2.4.0 produces the following incorrect error string:

```
#!bash
TypeError: pxn_qxn() takes no arguments (1 given)
```

This is incorrect (the function takes arguments).


_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to