mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-20 04:43:21 +00:00
Fixes in LRADC.py for debug printing failing when using Python3. Updates to the README to detail running unit tests for either Python version. Ref #42 and #47
This commit is contained in:
10
README.rst
10
README.rst
@ -345,11 +345,19 @@ To use the utilities, here is sample code::
|
||||
|
||||
Install py.test to run the tests. You'll also need the python compiler package for py.test.::
|
||||
|
||||
# Python 2.7
|
||||
sudo apt-get install python-pytest
|
||||
# Python 3
|
||||
sudo apt-get install python3-pytest
|
||||
|
||||
Execute the following in the root of the project::
|
||||
To run the tests, do the following.::
|
||||
|
||||
# If only one version of Python is installed
|
||||
sudo py.test
|
||||
# If more than one version of Python
|
||||
cd test
|
||||
sudo python2 -m pytest
|
||||
sudo python3 -m pytest
|
||||
|
||||
**Credits**
|
||||
|
||||
|
Reference in New Issue
Block a user