changeset 2839:72f1ea5f29b6

Skip tests properly when libxml2 is not installed.
author Karol 'grzywacz' Nowak <grzywacz@sul.uni.lodz.pl>
date Sun, 16 Sep 2007 22:29:21 +0200
parents 62d309a0e670
children 167c6efea1de
files jabberbot/_tests/test_xmppbot.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jabberbot/_tests/test_xmppbot.py	Sat Sep 15 18:37:10 2007 +0200
+++ b/jabberbot/_tests/test_xmppbot.py	Sun Sep 16 22:29:21 2007 +0200
@@ -11,10 +11,10 @@
 
 try:
     import pyxmpp
+    from jabberbot.xmppbot import XMPPBot
 except ImportError:
     py.test.skip("Skipping jabber bot tests - pyxmpp is not installed")
 
-from jabberbot.xmppbot import XMPPBot
 import jabberbot.commands as commands
 from jabberbot.config import BotConfig