forked from goodboy/tractor
1
0
Fork 0

Convert all test suite sync funcs

drop_sync_funcs
Tyler Goodlet 2021-04-27 09:14:08 -04:00
parent 5798ef6796
commit 1f1619c730
5 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import tractor import tractor
def cellar_door(): async def cellar_door():
assert not tractor.is_root_process() assert not tractor.is_root_process()
return "Dang that's beautiful" return "Dang that's beautiful"

View File

@ -1,7 +1,7 @@
import tractor import tractor
def movie_theatre_question(): async def movie_theatre_question():
"""A question asked in a dark theatre, in a tangent """A question asked in a dark theatre, in a tangent
(errr, I mean different) process. (errr, I mean different) process.
""" """

View File

@ -29,7 +29,7 @@ PRIMES = [
] ]
def is_prime(n): async def is_prime(n):
if n < 2: if n < 2:
return False return False
if n == 2: if n == 2:

View File

@ -120,7 +120,7 @@ def test_multierror_fast_nursery(arb_addr, start_method, num_subactors, delay):
assert exc.type == AssertionError assert exc.type == AssertionError
def do_nothing(): async def do_nothing():
pass pass

View File

@ -51,7 +51,7 @@ def test_local_arbiter_subactor_global_state(arb_addr):
assert result == 10 assert result == 10
def movie_theatre_question(): async def movie_theatre_question():
"""A question asked in a dark theatre, in a tangent """A question asked in a dark theatre, in a tangent
(errr, I mean different) process. (errr, I mean different) process.
""" """
@ -80,7 +80,7 @@ async def test_movie_theatre_convo(start_method):
await portal.cancel_actor() await portal.cancel_actor()
def cellar_door(): async def cellar_door():
return "Dang that's beautiful" return "Dang that's beautiful"