diff --git a/README.md b/README.md index 49cebff..d285903 100644 --- a/README.md +++ b/README.md @@ -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 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. diff --git a/WTE/README.md b/WTE/README.md index 129014e..59fbf92 100644 --- a/WTE/README.md +++ b/WTE/README.md @@ -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 diff --git a/WTE/test.py b/WTE/test.py index b314776..f664249 100644 --- a/WTE/test.py +++ b/WTE/test.py @@ -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.")