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 287eca6 commit d83f226Copy full SHA for d83f226
1 file changed
Lib/ctypes/test/test_parameters.py
@@ -73,13 +73,10 @@ def test_cw_strings(self):
73
except ImportError:
74
## print "(No c_wchar_p)"
75
return
76
- s = "123"
77
- if sys.platform == "win32":
78
- self.assertTrue(c_wchar_p.from_param(s)._obj is s)
79
- self.assertRaises(TypeError, c_wchar_p.from_param, 42)
80
81
- # new in 0.9.1: convert (decode) ascii to unicode
82
- self.assertEqual(c_wchar_p.from_param("123")._obj, "123")
+ c_wchar_p.from_param("123")
+
+ self.assertRaises(TypeError, c_wchar_p.from_param, 42)
83
self.assertRaises(TypeError, c_wchar_p.from_param, b"123\377")
84
85
pa = c_wchar_p.from_param(c_wchar_p("123"))
0 commit comments