Browse Source

Cleaning up for merge.

pyserial_fix
Ted Drain 7 years ago
parent
commit
8f60f553c3
2 changed files with 5 additions and 1 deletions
  1. +0
    -1
      alarmdecoder/decoder.py
  2. +5
    -0
      test/test_devices.py

+ 0
- 1
alarmdecoder/decoder.py View File

@@ -262,7 +262,6 @@ class AlarmDecoder(object):
:param no_reader_thread: Specifies whether or not the automatic reader :param no_reader_thread: Specifies whether or not the automatic reader
thread should be started. thread should be started.
:type no_reader_thread: bool :type no_reader_thread: bool

""" """
self._wire_events() self._wire_events()
try: try:


+ 5
- 0
test/test_devices.py View File

@@ -1,6 +1,11 @@
from unittest import TestCase from unittest import TestCase
from mock import Mock, MagicMock, patch from mock import Mock, MagicMock, patch
from serial import Serial, SerialException from serial import Serial, SerialException
try:
from pyftdi.pyftdi.ftdi import Ftdi, FtdiError
except:
from pyftdi.ftdi import Ftdi, FtdiError
from usb.core import USBError, Device as USBCoreDevice
import sys import sys
import socket import socket
import time import time


Loading…
Cancel
Save