def tearDown(self):
self.s.reset_output_buffer()
self.s.flush()
#~ self.s.write(serial.XON)
self.s.close()
# reopen... some faulty USB-serial adapter make next test fail otherwise...
self.s.timeout = 1
self.s.xonxoff = False
self.s.open()
self.s.read(3000)
self.s.close()
评论列表
文章目录