Skip to content

Commit 1882399

Browse files
committed
tests: fix test_bytes
%p has different casing with mingw-w64, but it's implementation defined. Change the test to the mingw-w64 variant.
1 parent a27e104 commit 1882399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_bytes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ def test_from_format(self):
11051105

11061106
if os.name == 'nt':
11071107
# Windows (MSCRT)
1108-
ptr_format = '0x%0{}X'.format(2 * sizeof_ptr)
1108+
ptr_format = '0x%0{}x'.format(2 * sizeof_ptr)
11091109
def ptr_formatter(ptr):
11101110
return (ptr_format % ptr)
11111111
else:

0 commit comments

Comments
 (0)