forked from goodboy/tractor
Drop thread logging to make `log.pdb()` patts match in test
parent
408a74784e
commit
30d60379c1
|
@ -1,6 +1,5 @@
|
||||||
from functools import partial
|
from functools import partial
|
||||||
import time
|
import time
|
||||||
from threading import current_thread
|
|
||||||
|
|
||||||
import trio
|
import trio
|
||||||
import tractor
|
import tractor
|
||||||
|
@ -16,17 +15,9 @@ def sync_pause(
|
||||||
time.sleep(pre_sleep)
|
time.sleep(pre_sleep)
|
||||||
|
|
||||||
if use_builtin:
|
if use_builtin:
|
||||||
print(
|
|
||||||
f'Entering `breakpoint()` from\n'
|
|
||||||
f'{current_thread()}\n'
|
|
||||||
)
|
|
||||||
breakpoint(hide_tb=hide_tb)
|
breakpoint(hide_tb=hide_tb)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print(
|
|
||||||
f'Entering `tractor.pause_from_sync()` from\n'
|
|
||||||
f'{current_thread()}@{tractor.current_actor().uid}\n'
|
|
||||||
)
|
|
||||||
tractor.pause_from_sync()
|
tractor.pause_from_sync()
|
||||||
|
|
||||||
if error:
|
if error:
|
||||||
|
|
Loading…
Reference in New Issue