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 0e4d3d1 commit 0a66eabCopy full SHA for 0a66eab
1 file changed
src/trio/_tests/test_timeouts.py
@@ -249,6 +249,8 @@ def test_invalid_access_unentered() -> None:
249
match_str = "^Unentered relative cancel scope does not have an absolute deadline"
250
with pytest.raises(RuntimeError, match=match_str):
251
assert cs.deadline
252
+ with pytest.raises(RuntimeError, match=match_str):
253
+ cs.deadline += 5
254
255
# switch from relative to absolute
256
cs.deadline = 7
@@ -260,6 +262,8 @@ def test_invalid_access_unentered() -> None:
260
262
)
261
263
264
assert cs.relative_deadline
265
266
+ cs.relative_deadline += 5
267
268
cs.relative_deadline = 9
269
assert cs.relative_deadline == 9
0 commit comments