WTE: skip tests + warn on Python 2

This commit is contained in:
James Lu 2014-12-03 17:02:56 -08:00
parent 4d2b5d2103
commit c508505df8
3 changed files with 7 additions and 0 deletions

View File

@ -74,3 +74,4 @@ Most of these plugins have their own READMEs in their folders; you can check the
##### [WTE](WTE/README.md)
- Worst Translations Ever! plugin. Translates <text> through multiple rounds of Google Translate to get some interesting results!
- Due to lingering issues with Unicode handling in Python 2, **Python 3 is strongly recommended** for those using this plugin.

View File

@ -1,5 +1,7 @@
##WTE - Worst Translations Ever!
**Due to lingering issues with Unicode handling in Python 2, Python 3 is strongly recommended for those using this plugin!**
WTE is a plugin that sticks text through multiple rounds of Google Translate, in order to get
some interesting results. It automatically picks a list of languages to go through, and translates
back and forth between them quite a few times. This guarantees that the result will be different

View File

@ -29,10 +29,14 @@
###
from supybot.test import *
from sys import version_info
import unittest
class WTETestCase(PluginTestCase):
plugins = ('WTE',)
@unittest.skipIf(version_info[0] < 3,
"Not supported on Python 2 (severe Unicode handling problems)")
def testWTE(self):
m = self.getMsg("wte The quick brown fox jumps over "
"the lazy dog.")