From e200080a5eef4b780c939d7f5df84a6a83eca6fd Mon Sep 17 00:00:00 2001 From: Nicolas Jouanin Date: Sat, 13 Jun 2015 15:14:03 +0200 Subject: [PATCH] Fix tests --- hbmqtt/broker/__init__.py | 2 +- hbmqtt/errors.py | 6 ++++++ hbmqtt/mqtt/connect.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hbmqtt/broker/__init__.py b/hbmqtt/broker/__init__.py index 7b061d8..cbf4a26 100644 --- a/hbmqtt/broker/__init__.py +++ b/hbmqtt/broker/__init__.py @@ -2,4 +2,4 @@ # # See the file license.txt for copying permission. -from ._broker import Broker \ No newline at end of file +#from ._broker import Broker \ No newline at end of file diff --git a/hbmqtt/errors.py b/hbmqtt/errors.py index 2738834..c9096a8 100644 --- a/hbmqtt/errors.py +++ b/hbmqtt/errors.py @@ -19,3 +19,9 @@ class CodecException(HBMQTTException): Exceptions thrown by packet encode/decode functions """ pass + +class NoDataException(HBMQTTException): + """ + Exceptions thrown by packet encode/decode functions + """ + pass diff --git a/hbmqtt/mqtt/connect.py b/hbmqtt/mqtt/connect.py index 16460ae..12840ae 100644 --- a/hbmqtt/mqtt/connect.py +++ b/hbmqtt/mqtt/connect.py @@ -4,7 +4,7 @@ import asyncio from hbmqtt.mqtt.packet import MQTTPacket, MQTTFixedHeader, PacketType, MQTTVariableHeader, MQTTPayload from hbmqtt.codecs import * -from hbmqtt.errors import MQTTException, CodecException, HBMQTTException +from hbmqtt.errors import MQTTException, CodecException, HBMQTTException, NoDataException from hbmqtt.session import Session