Skip to content

Commit

Permalink
remove walrus operator, it's not in super old python
Browse files Browse the repository at this point in the history
  • Loading branch information
jepler committed Oct 17, 2024
1 parent 5211c6a commit b7755b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def filesystem(request):

deadline = time.time() + 1
while time.time() < deadline:
if (result := proc.poll()) is not None:
result = proc.poll()
if result is not None:
if result != 0:
raise RuntimeError("Filesystem exited with an error: {result}")
return
Expand Down

0 comments on commit b7755b4

Please sign in to comment.