I got this error once because I was using `pytest.mark.parametrize` with random arguments. The error disappeared once I made the arguments fixed and randomize within the test itself.
In case someone finds this useful.