Commit e4ab1810 authored by chiggs's avatar chiggs

Remove coverage debug, add pragmas

parent 506b2b38
...@@ -56,7 +56,7 @@ class ImageDriver(Driver): ...@@ -56,7 +56,7 @@ class ImageDriver(Driver):
image (PIL.Image) image to send into the dut image (PIL.Image) image to send into the dut
""" """
if image.mode != "RGB": if image.mode != "RGB": # pragma: no cover
raise TypeError("Require an format RGB image") raise TypeError("Require an format RGB image")
width, height = image.size width, height = image.size
......
...@@ -59,16 +59,6 @@ def process_image(dut, filename="", debug=False, threshold=0.22): ...@@ -59,16 +59,6 @@ def process_image(dut, filename="", debug=False, threshold=0.22):
raise TestFailure("Resulting image file was too different (%f > %f)" % raise TestFailure("Resulting image file was too different (%f > %f)" %
(difference, threshold)) (difference, threshold))
try:
import coverage
except ImportError as e:
import os, sys
print sys.path
if os.path.isdir("/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages"):
print os.listdir("/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages")
else:
print "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages doesn't exist"
tf = TestFactory(process_image) tf = TestFactory(process_image)
tf.add_option("filename", [os.path.join('test_images', f) tf.add_option("filename", [os.path.join('test_images', f)
for f in os.listdir('test_images')]) for f in os.listdir('test_images')])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment