summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2009-04-24 20:00:41 (GMT)
committerThomas Heller <theller@ctypes.org>2009-04-24 20:00:41 (GMT)
commitec21ccde12da6a5cc7143b533e0c707ebe5c1a3a (patch)
treedae167ce40c6c662441e1ecfa4429902fa26c588 /Lib
parentaddfe22821ad8db05e8dd0e90fe68463dd69c500 (diff)
downloadcpython-ec21ccde12da6a5cc7143b533e0c707ebe5c1a3a.zip
cpython-ec21ccde12da6a5cc7143b533e0c707ebe5c1a3a.tar.gz
cpython-ec21ccde12da6a5cc7143b533e0c707ebe5c1a3a.tar.bz2
Issue 5041: ctypes unwilling to allow pickling wide character.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_pickling.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/ctypes/test/test_pickling.py b/Lib/ctypes/test/test_pickling.py
index c7925c7..28868f4 100644
--- a/Lib/ctypes/test/test_pickling.py
+++ b/Lib/ctypes/test/test_pickling.py
@@ -66,6 +66,11 @@ class PickleTest(unittest.TestCase):
]:
self.assertRaises(ValueError, lambda: self.dumps(item))
+ def test_wchar(self):
+ pickle.dumps(c_char("x"))
+ # Issue 5049
+ pickle.dumps(c_wchar(u"x"))
+
class PickleTest_1(PickleTest):
def dumps(self, item):
return pickle.dumps(item, 1)