We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fe8489 commit 2ec4852Copy full SHA for 2ec4852
src/pytest_randomly/__init__.py
@@ -199,7 +199,7 @@ def _reseed(config: Config, offset: int = 0) -> int:
199
if have_tensorflow: # pragma: no branch
200
tf.random.set_seed(seed)
201
# TensorFlow 1.x compatibility
202
- if hasattr(tf, 'compat'):
+ if hasattr(tf, "compat"):
203
tf.compat.v1.set_random_seed(seed)
204
205
if have_pytorch: # pragma: no branch
0 commit comments