Skip to content

Commit d3df5c1

Browse files
authored
Update pins and minimize pytest.warns block
1 parent 419a781 commit d3df5c1

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

src/trio/_core/_tests/test_guest_mode.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -425,27 +425,27 @@ async def abandoned_main(in_host: InHost) -> None:
425425
do_abandoned_guest_run()
426426
gc_collect_harder()
427427

428-
# If you have problems some day figuring out what's holding onto a
429-
# reference to the unrolled_run generator and making this test fail,
430-
# then this might be useful to help track it down. (It assumes you
431-
# also hack start_guest_run so that it does 'global W; W =
432-
# weakref(unrolled_run_gen)'.)
433-
#
434-
# import gc
435-
# print(trio._core._run.W)
436-
# targets = [trio._core._run.W()]
437-
# for i in range(15):
438-
# new_targets = []
439-
# for target in targets:
440-
# new_targets += gc.get_referrers(target)
441-
# new_targets.remove(targets)
442-
# print("#####################")
443-
# print(f"depth {i}: {len(new_targets)}")
444-
# print(new_targets)
445-
# targets = new_targets
446-
447-
with pytest.raises(RuntimeError):
448-
trio.current_time()
428+
# If you have problems some day figuring out what's holding onto a
429+
# reference to the unrolled_run generator and making this test fail,
430+
# then this might be useful to help track it down. (It assumes you
431+
# also hack start_guest_run so that it does 'global W; W =
432+
# weakref(unrolled_run_gen)'.)
433+
#
434+
# import gc
435+
# print(trio._core._run.W)
436+
# targets = [trio._core._run.W()]
437+
# for i in range(15):
438+
# new_targets = []
439+
# for target in targets:
440+
# new_targets += gc.get_referrers(target)
441+
# new_targets.remove(targets)
442+
# print("#####################")
443+
# print(f"depth {i}: {len(new_targets)}")
444+
# print(new_targets)
445+
# targets = new_targets
446+
447+
with pytest.raises(RuntimeError):
448+
trio.current_time()
449449

450450

451451
def aiotrio_run(

test-requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pyyaml==6.0.2
128128
# via pre-commit
129129
requests==2.32.3
130130
# via sphinx
131-
ruff==0.9.1
131+
ruff==0.9.2
132132
# via -r test-requirements.in
133133
sniffio==1.3.1
134134
# via -r test-requirements.in
@@ -181,7 +181,7 @@ typing-extensions==4.12.2
181181
# pyright
182182
urllib3==2.3.0
183183
# via requests
184-
uv==0.5.18
184+
uv==0.5.21
185185
# via -r test-requirements.in
186186
virtualenv==20.28.0
187187
# via pre-commit

0 commit comments

Comments
 (0)