The rotation direction was flipped recently.
This meant that rotation on a single axis gave negative results compared
with previous Blender releases.
This partially reverts a9b53daf23ba8b6cb4c930e06154ffd35522b00d.
The test test_undo.view3d_sculpt_dyntopo_simple is currently broken, I bisected the break back to rBa9b53daf23ba: Fix T83092: Direction of rotation with View orientation changed in 2.91 which reverses the rotation direction. I have double checked that T83092 doesn't break after this commit, submitting for review to make sure this isn't exposing some other issue. Although from my tests it's working.
To run the test this fixes:
python ../lib/tests/ui_simulate/run.py --blender='./blender.bin --tests "test_undo.view3d_sculpt_dyntopo_simple"