Can't run any puppy tests, get --assert: invalid choice etc...

For instance this command :usage: py.test [options] [file_or_dir] [file_or_dir] [...]py.test: error: argument --assert: invalid choice: 'reinterp' (choose from 'rewrite', 'plain') Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com

pypy not puppy (spell-check woes) Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Saturday, November 26, 2016 8:03 AM, Shubha Ramani via pypy-dev <pypy-dev@python.org> wrote: For instance this command :usage: py.test [options] [file_or_dir] [file_or_dir] [...]py.test: error: argument --assert: invalid choice: 'reinterp' (choose from 'rewrite', 'plain') Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Easily solved. Do the following:1)in ./pytest.ini and ./rpython/pytest.ini change assert=reinterp to assert=rewrite. It turns out in the latest version of pytest assert=reinterp is no longer supported2)comment out the following lines from ~/pypy/pypy/tool/pytest/appsupport.py #try:# from _pytest.assertion.reinterpret import reinterpret as interpret#except ImportError:# from _pytest.assertion.newinterpret import interpret # _____ Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Saturday, November 26, 2016 8:04 AM, Shubha Ramani <shubharamani@yahoo.com> wrote: pypy not puppy (spell-check woes) Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Saturday, November 26, 2016 8:03 AM, Shubha Ramani via pypy-dev <pypy-dev@python.org> wrote: For instance this command :usage: py.test [options] [file_or_dir] [file_or_dir] [...]py.test: error: argument --assert: invalid choice: 'reinterp' (choose from 'rewrite', 'plain') Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Hi Shubha, On 26 November 2016 at 17:58, Shubha Ramani via pypy-dev <pypy-dev@python.org> wrote:
change assert=reinterp to assert=rewrite. It turns out in the latest version of pytest assert=reinterp is no longer supported
It means that the latest version of py.test can't be used, then. With your hack you disable a feature that is essential to our development. Note that PyPy could, so far, use an external py.test, but always also came with its own included version, available as the top-level "pytest.py". Maybe we should systematically document using that one instead and make sure it doesn't pick any globally installed "_pytest" package. There was also another essential-to-PyPy feature that was removed recently, so maybe we'll stop updating py.test altogether in the future. A bientôt, Armin.

pypy not puppy (spell-check woes) Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Saturday, November 26, 2016 8:03 AM, Shubha Ramani via pypy-dev <pypy-dev@python.org> wrote: For instance this command :usage: py.test [options] [file_or_dir] [file_or_dir] [...]py.test: error: argument --assert: invalid choice: 'reinterp' (choose from 'rewrite', 'plain') Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Easily solved. Do the following:1)in ./pytest.ini and ./rpython/pytest.ini change assert=reinterp to assert=rewrite. It turns out in the latest version of pytest assert=reinterp is no longer supported2)comment out the following lines from ~/pypy/pypy/tool/pytest/appsupport.py #try:# from _pytest.assertion.reinterpret import reinterpret as interpret#except ImportError:# from _pytest.assertion.newinterpret import interpret # _____ Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Saturday, November 26, 2016 8:04 AM, Shubha Ramani <shubharamani@yahoo.com> wrote: pypy not puppy (spell-check woes) Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com On Saturday, November 26, 2016 8:03 AM, Shubha Ramani via pypy-dev <pypy-dev@python.org> wrote: For instance this command :usage: py.test [options] [file_or_dir] [file_or_dir] [...]py.test: error: argument --assert: invalid choice: 'reinterp' (choose from 'rewrite', 'plain') Shubha D. Ramanishubharamani@gmail.com shubharamani@yahoo.com _______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev

Hi Shubha, On 26 November 2016 at 17:58, Shubha Ramani via pypy-dev <pypy-dev@python.org> wrote:
change assert=reinterp to assert=rewrite. It turns out in the latest version of pytest assert=reinterp is no longer supported
It means that the latest version of py.test can't be used, then. With your hack you disable a feature that is essential to our development. Note that PyPy could, so far, use an external py.test, but always also came with its own included version, available as the top-level "pytest.py". Maybe we should systematically document using that one instead and make sure it doesn't pick any globally installed "_pytest" package. There was also another essential-to-PyPy feature that was removed recently, so maybe we'll stop updating py.test altogether in the future. A bientôt, Armin.
participants (2)
-
Armin Rigo
-
Shubha Ramani