Fix incorrect stacklevel for DeprecationWarnings originating from the struct module.
Also clean up related tests in test_struct. The stacklevel fix should be backported to 2.6 once that branch is unfrozen.
Showing
Please
register
or
sign in
to comment