pynt icon indicating copy to clipboard operation
pynt copied to clipboard

Tests fail because names of pytest executable are hardcoded

Open ghost opened this issue 4 years ago • 1 comments

It happens because of this:

https://github.com/rags/pynt/blob/c0fbbc4c0c6c1ccbbf11a744fb62d33c78ac0ae0/build.py#L18

In my system, I have both Python 2 and 3 (maybe it's worth dropping Python 2 support already?). Executables are named py.test and py.test3.

To maintain backwards compatibility, it's probably worth wrapping those subprocess calls and if they fail - try generic names.

ghost avatar Apr 13 '20 11:04 ghost

Attempted to fix it in https://github.com/rags/pynt/pull/26

ghost avatar Apr 13 '20 11:04 ghost