Skip to content

Commit

Permalink
chore(test): remove print statements (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Nov 22, 2024
1 parent eef418d commit 08bb4d2
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/test_prio_semaphore.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@ def test_prio_semaphore_init():
async def test_prio_semaphore_use():
semaphore = PrioritySemaphore(1)
assert semaphore._value == 1
# await semaphore.acquire()
# assert semaphore._value == 0
# semaphore.release()
await semaphore.acquire()
assert semaphore._value == 0
semaphore.release()
assert semaphore._value == 1
print("entering")

cm = semaphore[100]
# print(cm)
async with cm:
print("entered")
assert semaphore._value == 0
print("exiting")
print("exited")
assert semaphore._value == 1
async with semaphore:
assert semaphore._value == 0
Expand Down

0 comments on commit 08bb4d2

Please sign in to comment.