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 e4420f9 commit 03cee25Copy full SHA for 03cee25
test/conftest.py
@@ -63,3 +63,11 @@ def prevent_leaking_rng():
63
random.setstate(builtin_rng_state)
64
if torch.cuda.is_available():
65
torch.cuda.set_rng_state(cuda_rng_state)
66
+
67
68
+@pytest.fixture(autouse=True)
69
+def check_no_stdout_or_stderr(capsys):
70
+ yield
71
+ captured = capsys.readouterr()
72
+ assert not captured.out, "stdout output detected"
73
+ assert not captured.err, "stderr output detected"
0 commit comments