Can't change animation priority through a script

I can’t post in bug reports, so here it is.

It seems the animation priority of animation tracks can’t be changed in a script, only in animation editor. Or at least, they can be changed to a lower animation priority, but not a higher one.