mirror of https://github.com/ARMmbed/mbed-os.git
pyFlakes issues fixed. Simple refactoring
parent
0ca9a48b63
commit
005ed7ec4a
|
@ -15,16 +15,11 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from host_test import Test, DefaultTest
|
from host_test import DefaultTest
|
||||||
from sys import stdout
|
from sys import stdout
|
||||||
|
|
||||||
class DevNullTest(DefaultTest):
|
class DevNullTest(DefaultTest):
|
||||||
|
|
||||||
def print_result(self, result):
|
|
||||||
print "\n{%s}\n{end}" % result
|
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
test_result = True
|
|
||||||
c = self.mbed.serial.read(512)
|
c = self.mbed.serial.read(512)
|
||||||
print "Received %d bytes" % len(c)
|
print "Received %d bytes" % len(c)
|
||||||
if "{failure}" not in c:
|
if "{failure}" not in c:
|
||||||
|
|
Loading…
Reference in New Issue