mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-26 13:01:07 -05:00
WTE: skip tests + warn on Python 2
This commit is contained in:
parent
4d2b5d2103
commit
c508505df8
@ -74,3 +74,4 @@ Most of these plugins have their own READMEs in their folders; you can check the
|
|||||||
|
|
||||||
##### [WTE](WTE/README.md)
|
##### [WTE](WTE/README.md)
|
||||||
- Worst Translations Ever! plugin. Translates <text> through multiple rounds of Google Translate to get some interesting results!
|
- 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.
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
##WTE - Worst Translations Ever!
|
##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
|
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
|
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
|
back and forth between them quite a few times. This guarantees that the result will be different
|
||||||
|
@ -29,10 +29,14 @@
|
|||||||
###
|
###
|
||||||
|
|
||||||
from supybot.test import *
|
from supybot.test import *
|
||||||
|
from sys import version_info
|
||||||
|
import unittest
|
||||||
|
|
||||||
class WTETestCase(PluginTestCase):
|
class WTETestCase(PluginTestCase):
|
||||||
plugins = ('WTE',)
|
plugins = ('WTE',)
|
||||||
|
|
||||||
|
@unittest.skipIf(version_info[0] < 3,
|
||||||
|
"Not supported on Python 2 (severe Unicode handling problems)")
|
||||||
def testWTE(self):
|
def testWTE(self):
|
||||||
m = self.getMsg("wte The quick brown fox jumps over "
|
m = self.getMsg("wte The quick brown fox jumps over "
|
||||||
"the lazy dog.")
|
"the lazy dog.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user