klrmn / pytest-random

randomize your py.test run
20 stars 10 forks source link

Can not work with newer pytest (2.9.1) #10

Closed georgexsh closed 8 years ago

georgexsh commented 8 years ago

with error message: "py.test: error: unrecognized arguments: --random", seems pytest plugin interface has changed.

klrmn commented 8 years ago

two dashes instead of one? maybe the two dashes got translated to an emdash somewhere along the way?

On Tue, Apr 5, 2016 at 12:02 AM, georgexsh notifications@github.com wrote:

with error message: "py.test: error: unrecognized arguments: -debug", seems pytest plugin interface has changed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/klrmn/pytest-random/issues/10

georgexsh commented 8 years ago

@klrmn thanks for your reply and sorry for the misleading message, it was --random. I found a workable workaround by loading plugin explicitly: -p random_plugin --random, maybe there are something wrong with py.test plugin discovery mechanism.

georgexsh commented 8 years ago

after upgrade setuptools and virtualenv, this issue disappeared.