Does anyone know of a @pytestdotorg plugin that cache's
- `random.getstate()`
- `numpy.random.get_state()`
so that, on failure, `--lf` runs under the same pRNG conditions? I can't find one, and that's a really easy bit of #python code to write.
-
Show this thread
-
Replying to @generativist @pytestdotorg
I'm not familiar with one, but should be pretty simple to add a session-scoped fixture which monkey-patches those two functions, saving it using the cache fixture.
1 reply 0 retweets 1 like
And page 83 gives me all I need :)
3:52 PM - 25 Apr 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.