def test_secret_str_no_repr(self): """ Outside of reprs, _SecretStr behaves normally. """ s = _SecretStr("abc") assert "'abc'" == repr(s)