Handle a change in the implementation of hashlib in Python 3.9

Previously, hashlib.shake_256 was a class (if present); now it can also be a function. This change invalidated our old compatibility/workaround code, and made one of our tests fail.

Fixes part of bug #40179 (closed); bugfix on 0.3.1.6-rc when the workaround code was added.

Merge request reports

Loading