From 3ff50b11143aefcf1fc296dc10d4eb761dc8cab5 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 23 Mar 2014 21:43:56 +0100 Subject: [PATCH] Coinpan: Fix --- Coinpan/test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Coinpan/test.py b/Coinpan/test.py index 6d80d6a..810c767 100644 --- a/Coinpan/test.py +++ b/Coinpan/test.py @@ -30,6 +30,7 @@ ### import sys +from unittest import skip from supybot.test import * class CoinpanTestCase(ChannelPluginTestCase): @@ -56,8 +57,10 @@ class CoinpanTestCase(ChannelPluginTestCase): self.assertSnarfResponse('foo CION bar', 'foo P∀N bar') self.assertSnarfResponse('foo cion bar', 'foo pɐn bar') - if sys.version_info[0] == 2: + if sys.version_info < (2, 7, 0): def testCoinpan(self): - print('Skipped') + pass + elif sys.version_info < (3, 0, 0): + testCoinpan = skip('Plugin not compatible with Python2.')(testCoinpan) # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: