Skip to content

Commit

Permalink
add unittest skip condition for unsupported targets, remove failing a…
Browse files Browse the repository at this point in the history
…ssertion from unsupported targets
  • Loading branch information
cleandesign-contrib committed May 19, 2019
1 parent c5c2d2d commit ebb5fcc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/test_server_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
_logger = logging.getLogger()
if IS_PYTHON3: # Python 3
from asynctest.mock import patch, Mock, MagicMock
else:
assert(False, "asyncio is not available pre-python 3.6")

from pymodbus.device import ModbusDeviceIdentification
from pymodbus.factory import ServerDecoder
Expand Down Expand Up @@ -36,7 +34,7 @@
IS_HIGH_SIERRA_OR_ABOVE = False
SERIAL_PORT = "/dev/ptmx"


@pytest.mark.skipif(not IS_PYTHON3, reason="requires python3.4 or above")
class AsyncioServerTest(asynctest.TestCase):
'''
This is the unittest for the pymodbus.server.asyncio module
Expand Down

0 comments on commit ebb5fcc

Please sign in to comment.