jeffsilverm / nbmdt

network boot, monitor, and diagnostic tool
GNU General Public License v2.0
2 stars 0 forks source link

pytest sometimes uses python 2.7 when python 3.6 or greater is required #38

Closed jeffsilverm closed 5 years ago

jeffsilverm commented 5 years ago

Wrote test/test_pytest.py to verify that pytest is running an acceptable version of python. It will exit with a status code of 27 if the version is not acceptable.

jeffsilverm commented 5 years ago

There is a 4 step test procedure for test/test_pytest.py: python test/test_pytest.py should FAIL. python3 test/test_pytest.py should exit normally (status code 0) Using the version of pytest in /usr/local/bin (pytest-4.4.1 on my machine) is in: /usr/local/bin/pytest test/test_pytest.py should exit normally. pytest test/test_pytest.py should FAIL.