added .rstrip(' \t\n\r') to len(testdata) check

now no clear lines are interpretet
This commit is contained in:
Bastian Schroll 2015-07-04 08:46:05 +02:00
parent 9f99d0e705
commit e8e1b5940c

View file

@ -344,7 +344,7 @@ try:
logging.debug("start testing")
testFile = open(globals.script_path+"/testdata/testdata.txt","r")
for testData in testFile:
if (len(testData) > 1) and ("#" not in testData[0]):
if (len(testData.rstrip(' \t\n\r')) > 1) and ("#" not in testData[0]):
logging.info("Testdata: %s", testData.rstrip(' \t\n\r'))
from includes import decoder
decoder.decode(converter.freqToHz(args.freq), testData)