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 8f13603 commit dbf4a0eCopy full SHA for dbf4a0e
1 file changed
tests/test_validators.py
@@ -97,6 +97,22 @@ def test_disabled_ctx_with_errors(self):
97
98
assert _config._run_validators is True
99
100
+ def test_disabled_ctx_nested(self):
101
+ """
102
+ Nested contextmanagers restore correct state.
103
104
+ assert _config._run_validators is True
105
+
106
+ with validator_module.disabled():
107
+ assert _config._run_validators is False
108
109
110
111
112
113
114
115
116
117
class TestInstanceOf:
118
"""
0 commit comments