Skip to content

Commit f44281a

Browse files
author
Ethan Ho
committed
Debug pytest logging error
Symptom of pytest-dev/pytest#5577
1 parent f7fe013 commit f44281a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_logs.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,18 @@ def test_log_stderr(R, caplog, capsys):
6969
'_REACTOR_LOGS_TOKEN',
7070
'_REACTOR_LOGGER_CLIENT_KEY'
7171
])
72-
def test_log_redact_env(R, env_name, caplog, capsys, monkeypatch):
72+
def test_log_redact_env(R, env_name, monkeypatch):
7373
'''Verify that the text of an override value cannot be logged'''
7474
monkeypatch.setenv('_REACTOR_REDACT', 'VewyVewySekwit')
7575
monkeypatch.setenv(env_name, 'VewyVewySekwit')
7676
monkeypatch.setenv('_REACTOR_LOGS_LEVEL', 'DEBUG')
7777
r = R()
7878
r.logger.debug(r.settings)
79-
out, err = capsys.readouterr()
80-
assert 'VewyVewySekwit' not in err
81-
assert 'VewyVewySekwit' not in out
82-
assert 'VewyVewySekwit' in caplog.text
79+
assert 0
80+
# out, err = capsys.readouterr()
81+
# assert 'VewyVewySekwit' not in err
82+
# assert 'VewyVewySekwit' not in out
83+
# assert 'VewyVewySekwit' in caplog.text
8384

8485

8586
@pytest.mark.skip(reason="to be fixed on #34")

0 commit comments

Comments
 (0)