Convert all test suite sync funcs
parent
5798ef6796
commit
1f1619c730
|
@ -1,7 +1,7 @@
|
|||
import tractor
|
||||
|
||||
|
||||
def cellar_door():
|
||||
async def cellar_door():
|
||||
assert not tractor.is_root_process()
|
||||
return "Dang that's beautiful"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import tractor
|
||||
|
||||
|
||||
def movie_theatre_question():
|
||||
async def movie_theatre_question():
|
||||
"""A question asked in a dark theatre, in a tangent
|
||||
(errr, I mean different) process.
|
||||
"""
|
||||
|
|
|
@ -29,7 +29,7 @@ PRIMES = [
|
|||
]
|
||||
|
||||
|
||||
def is_prime(n):
|
||||
async def is_prime(n):
|
||||
if n < 2:
|
||||
return False
|
||||
if n == 2:
|
||||
|
|
|
@ -120,7 +120,7 @@ def test_multierror_fast_nursery(arb_addr, start_method, num_subactors, delay):
|
|||
assert exc.type == AssertionError
|
||||
|
||||
|
||||
def do_nothing():
|
||||
async def do_nothing():
|
||||
pass
|
||||
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ def test_local_arbiter_subactor_global_state(arb_addr):
|
|||
assert result == 10
|
||||
|
||||
|
||||
def movie_theatre_question():
|
||||
async def movie_theatre_question():
|
||||
"""A question asked in a dark theatre, in a tangent
|
||||
(errr, I mean different) process.
|
||||
"""
|
||||
|
@ -80,7 +80,7 @@ async def test_movie_theatre_convo(start_method):
|
|||
await portal.cancel_actor()
|
||||
|
||||
|
||||
def cellar_door():
|
||||
async def cellar_door():
|
||||
return "Dang that's beautiful"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue