Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d859d15 commit fb3e8e2Copy full SHA for fb3e8e2
pandas/tests/test_common.py
@@ -193,6 +193,21 @@ def test_console_encode():
193
expected = u"\u05d0".encode('utf-8')
194
assert (result == expected)
195
196
+def test_pprint_thing():
197
+ if py3compat.PY3:
198
+ raise nose.SkipTest
199
+
200
+ pp_t=com.pprint_thing
201
202
+ assert(pp_t('a')==u'a')
203
+ assert(pp_t(u'a')==u'a')
204
+ assert(pp_t(None)=='')
205
+ assert(pp_t(u'\u05d0')==u'\u05d0')
206
+ assert(pp_t((u'\u05d0',u'\u05d1'))==u'(\u05d0, \u05d1)')
207
+ assert(pp_t((u'\u05d0',(u'\u05d1',u'\u05d2')))==
208
+ u'(\u05d0, (\u05d1, \u05d2))')
209
+ assert(pp_t(('foo',u'\u05d0',(u'\u05d0',u'\u05d0')))==
210
+ u'(foo, \u05d0, (\u05d0, \u05d0))')
211
212
class TestTake(unittest.TestCase):
213
0 commit comments