Using recently added `pytest.PY2` instead of `str is bytes`. (#2396)
Important gain: uniformity & therefore easier cleanup when we drop PY2 support. Very slight loss: it was nice to have `str is bytes` as a reminder in this specific context.
Showing
Please
register
or
sign in
to comment