summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-28 11:36:20 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-28 11:36:20 (GMT)
commitd83f226d93cc24be3d6db953c8e8bd3d751c81a9 (patch)
treebe6c8eee4b16b659612251ee164099474b6f0e72
parent287eca658d472b737746a0c25d3bf5d041cfd89b (diff)
downloadcpython-d83f226d93cc24be3d6db953c8e8bd3d751c81a9.zip
cpython-d83f226d93cc24be3d6db953c8e8bd3d751c81a9.tar.gz
cpython-d83f226d93cc24be3d6db953c8e8bd3d751c81a9.tar.bz2
test_ctypes: Windows is no more a special case
-rw-r--r--Lib/ctypes/test/test_parameters.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/ctypes/test/test_parameters.py b/Lib/ctypes/test/test_parameters.py
index e83fd9a..9762fb9 100644
--- a/Lib/ctypes/test/test_parameters.py
+++ b/Lib/ctypes/test/test_parameters.py
@@ -73,13 +73,10 @@ class SimpleTypesTestCase(unittest.TestCase):
except ImportError:
## print "(No c_wchar_p)"
return
- s = "123"
- if sys.platform == "win32":
- self.assertTrue(c_wchar_p.from_param(s)._obj is s)
- self.assertRaises(TypeError, c_wchar_p.from_param, 42)
- # new in 0.9.1: convert (decode) ascii to unicode
- 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)
self.assertRaises(TypeError, c_wchar_p.from_param, b"123\377")
pa = c_wchar_p.from_param(c_wchar_p("123"))