From c7aab75dc32bb20f292e7b4276e5d122a6711e42 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 12 Apr 2022 16:13:33 -0400 Subject: [PATCH] WIP prints to debug frickin windows --- tests/test_infected_asyncio.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/test_infected_asyncio.py b/tests/test_infected_asyncio.py index 88fce6d..2030391 100644 --- a/tests/test_infected_asyncio.py +++ b/tests/test_infected_asyncio.py @@ -280,14 +280,19 @@ async def stream_from_aio( # we get double the pulled values in the # ``.subscribe()`` fan out case. doubled = list(itertools.chain(*zip(expect, expect))) - if pulled != doubled[:len(pulled)]: - print(f'uhhh pulled is {pulled}') - assert pulled == doubled[:len(pulled)] + expect = doubled[:len(pulled)] + if list(sorted(pulled)) != expect: + print( + f'uhhh pulled is {pulled}\n', + f'uhhh expect is {expect}\n', + ) + + assert pulled == expect else: assert pulled == expect else: - # if fan_out: + assert not fan_out assert pulled == expect[:51] print('trio guest mode task completed!')