pynt icon indicating copy to clipboard operation
pynt copied to clipboard

workaround for making tests pass

Open ghost opened this issue 4 years ago • 1 comments

subj

ghost avatar Apr 13 '20 11:04 ghost

It absolutely doesn't enforce Python 2 and is supposed to stay backwards compatible (unless I did it wrong).

From what I understand "py.test" could be either

You are right. On a system with Python 3 only, I believe it's possible to have a py.test-3.x executable and a py.test symlink to it. As I said above, since my system has both versions of Python, py.test points to the Python 2 version of pytest, while py.test3 points to the Python 3 version.

All I've tried to do was to catch the exception I was getting on my system, since it doesn't have the hardcoded py.test-2.7 or py.test-3.3 executable, and try the more generic py.test and py.test3 names.

Edit: so far I'm not sure what changes am I supposed to make.

ghost avatar Apr 13 '20 19:04 ghost