Python Packaging and being a good testing citizen

Andy Loughran andylockran at gmail.com
Fri Dec 18 10:29:08 EST 2015


Hey guys,

I wrote a python package to deal with heatmiser's protocol when communicating with devices over TCP.

It would be good to wrap some tests around it as I know the core elements won't change - but need to add support for different devices and different connection methods.

One thing has been bugging me, and that is that pyserial works differently on python2 to python3 due to accepting/rejecting strings in place of the new bytes datatype.

I'm not sure how best to test this, so I'm looking for advice:

https://www.andyloughran.co.uk/2015/12/16/python-testing/

Regards,

Andy



More information about the Python-list mailing list