Coinpan: Fix

master
Valentin Lorentz 2014-03-23 21:43:56 +01:00
parent c0b98e7de8
commit 3ff50b1114
1 changed files with 5 additions and 2 deletions

View File

@ -30,6 +30,7 @@
### ###
import sys import sys
from unittest import skip
from supybot.test import * from supybot.test import *
class CoinpanTestCase(ChannelPluginTestCase): 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')
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): 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: # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: