From: Victor Stinner Date: Tue, 28 Dec 2010 13:33:43 +0000 (+0000) Subject: Issue #10783: Fix test_sys, pack('c', ' ') => pack('c', b' ') X-Git-Tag: v3.2rc1~302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baab9d0bf6d1627aa292a7639878ae9ba46fc2ca;p=python Issue #10783: Fix test_sys, pack('c', ' ') => pack('c', b' ') --- diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index d7d77f098f..92b7c42806 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -569,7 +569,7 @@ class SizeofTest(unittest.TestCase): TPFLAGS_HEAPTYPE = 1<<9 def setUp(self): - self.c = len(struct.pack('c', ' ')) + self.c = len(struct.pack('c', b' ')) self.H = len(struct.pack('H', 0)) self.i = len(struct.pack('i', 0)) self.l = len(struct.pack('l', 0))