diff options
Diffstat (limited to 'tests/samplebinding/namedarg_test.py')
-rw-r--r-- | tests/samplebinding/namedarg_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/samplebinding/namedarg_test.py b/tests/samplebinding/namedarg_test.py index f510b372a..20f1908b6 100644 --- a/tests/samplebinding/namedarg_test.py +++ b/tests/samplebinding/namedarg_test.py @@ -30,14 +30,23 @@ import unittest from sample import Echo +from py3kcompat import IS_PY3K class TestNamedArg(unittest.TestCase): def testRegularCall(self): + # Python 3 support unicode as string + if IS_PY3K: + return + echo = Echo() self.assertRaises(TypeError, echo.methodWithNamedArg, unicode('foo')) def testNamedArgumentCall(self): + # Python 3 support unicode as string + if IS_PY3K: + return + echo = Echo() self.assertRaises(TypeError, echo.methodWithNamedArg, string=unicode('foo')) |