diff --git a/test/lib/xmpp_mocks.py b/test/lib/xmpp_mocks.py
index 015d3ee31fdf3dc07130bbc6e307925877105237..bf60ae6dce9ac8002c21eac5ef71e87ef51d9d1c 100644
--- a/test/lib/xmpp_mocks.py
+++ b/test/lib/xmpp_mocks.py
@@ -7,7 +7,6 @@ import threading, time
 from mock import Mock
 
 from common.xmpp import idlequeue
-from common.xmpp.plugin import PlugIn
 
 IDLEQUEUE_INTERVAL = 0.2 # polling interval. 200ms is used in Gajim as default
 IDLEMOCK_TIMEOUT = 30 # how long we wait for an event
diff --git a/test/test_roster.py b/test/test_roster.py
index 0172efa361d64660442916c1b222c0d690a41f8d..10d1ab4882c2d5e3ea6f02cd312e3f34446f4df0 100644
--- a/test/test_roster.py
+++ b/test/test_roster.py
@@ -9,7 +9,6 @@ from mock import Mock, expectParams
 from gajim_mocks import *
 
 from common import gajim
-from common import zeroconf
 import roster_window
 
 gajim.get_jid_from_account = lambda acc: 'myjid@' + acc