Merged revisions 71847 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r71847 | thomas.heller | 2009-04-24 22:00:41 +0200 (Fr, 24 Apr 2009) | 2 lines
Issue 5041: ctypes unwilling to allow pickling wide character.
........
diff --git a/Lib/ctypes/test/test_pickling.py b/Lib/ctypes/test/test_pickling.py
index 94a14b9..d88f08b 100644
--- a/Lib/ctypes/test/test_pickling.py
+++ b/Lib/ctypes/test/test_pickling.py
@@ -66,6 +66,11 @@
]:
self.assertRaises(ValueError, lambda: self.dumps(item))
+ def test_wchar(self):
+ pickle.dumps(c_char(b"x"))
+ # Issue 5049
+ pickle.dumps(c_wchar("x"))
+
class PickleTest_1(PickleTest):
def dumps(self, item):
return pickle.dumps(item, 1)