Skip to content

Commit

Permalink
tests: fix test_bytes
Browse files Browse the repository at this point in the history
%p has different casing with mingw-w64, but it's implementation defined.
Change the test to the mingw-w64 variant.
  • Loading branch information
lazka committed Aug 25, 2023
1 parent e1b2793 commit b77a578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ def test_from_format(self):

if os.name == 'nt':
# Windows (MSCRT)
ptr_format = '0x%0{}X'.format(2 * sizeof_ptr)
ptr_format = '0x%0{}x'.format(2 * sizeof_ptr)
def ptr_formatter(ptr):
return (ptr_format % ptr)
else:
Expand Down

0 comments on commit b77a578

Please sign in to comment.