gh-104415: Fix refleak tests for `typing.ByteString` deprecation (#104416)

1 file changed