summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-07-12 19:24:59 (GMT)
committerThomas Heller <theller@ctypes.org>2007-07-12 19:24:59 (GMT)
commit7a76e8f67c0866d04c7370df580bcd7b0cb42297 (patch)
tree37047f21a291538df162ee2473adc5bd3b7964cf /Lib/ctypes
parent9ccf4683239f945ca4e6696fc17575be5e896ac8 (diff)
downloadcpython-7a76e8f67c0866d04c7370df580bcd7b0cb42297.zip
cpython-7a76e8f67c0866d04c7370df580bcd7b0cb42297.tar.gz
cpython-7a76e8f67c0866d04c7370df580bcd7b0cb42297.tar.bz2
Fix another test.
Diffstat (limited to 'Lib/ctypes')
-rw-r--r--Lib/ctypes/test/test_strings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_strings.py b/Lib/ctypes/test/test_strings.py
index 3100b79..17c78a0 100644
--- a/Lib/ctypes/test/test_strings.py
+++ b/Lib/ctypes/test/test_strings.py
@@ -37,7 +37,7 @@ class StringArrayTestCase(unittest.TestCase):
def test_c_buffer_raw(self):
buf = c_buffer(32)
- buf.raw = buffer("Hello, World")
+ buf.raw = buffer(b"Hello, World")
self.failUnlessEqual(buf.value, "Hello, World")
self.assertRaises(TypeError, setattr, buf, "value", buffer("abc"))
self.assertRaises(ValueError, setattr, buf, "raw", buffer("x" * 100))