diff options
author | ptmcg <ptmcg@austin.rr.com> | 2018-10-27 14:22:56 -0500 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2018-10-27 14:22:56 -0500 |
commit | 04112e0654cc4c183aba876fc957b1f56ad56430 (patch) | |
tree | e08605028731b8ba0888b86ed716b2b03196a1b8 /unitTests.py | |
parent | 39d8f4f4911b59e1dbfb15cc5793c8b3a449c29f (diff) | |
download | pyparsing-git-04112e0654cc4c183aba876fc957b1f56ad56430.tar.gz |
Add Py2 unicodeisms
Diffstat (limited to 'unitTests.py')
-rw-r--r-- | unitTests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unitTests.py b/unitTests.py index cc4db6f..a32f6dc 100644 --- a/unitTests.py +++ b/unitTests.py @@ -3628,10 +3628,10 @@ class UnicodeTests(ParseTestCase): greet = pp.Word(alphas) + ',' + pp.Word(alphas) + '!'
# input string
- hello = "Καλημέρα, κόσμε!"
+ hello = u"Καλημέρα, κόσμε!"
result = greet.parseString(hello)
print_(result)
- self.assertTrue(result.asList() == ['Καλημέρα', ',', 'κόσμε', '!'],
+ self.assertTrue(result.asList() == [u'Καλημέρα', ',', u'κόσμε', '!'],
"Failed to parse Greek 'Hello, World!' using pyparsing_unicode.Greek.alphas")
class MiscellaneousParserTests(ParseTestCase):
|