also test python 2.7

This commit is contained in:
Edwin Eefting
2020-05-17 22:24:55 +02:00
parent 252086e2e6
commit 87e0599130
8 changed files with 13 additions and 11 deletions

View File

@ -4,7 +4,7 @@ import subprocess
import random
#default test stuff
import unittest
import unittest2
import subprocess
import time
from pprint import *
@ -17,7 +17,7 @@ def shelltest(cmd):
"""execute and print result as nice copypastable string for unit tests (adds extra newlines on top/bottom)"""
ret=(subprocess.check_output(cmd , shell=True).decode('utf-8'))
print("######### result of: {}".format(cmd))
print(ret,end='')
print(ret)
print("#########")
ret='\n'+ret
return(ret)