Skip to content

Commit 4e211f8

Browse files
Merge pull request #71 from stealthrocket/fix-scheduler-test
fix scheduler test
2 parents c5a4461 + d79a437 commit 4e211f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/dispatch/test_scheduler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import unittest
2+
from pprint import pprint
23
from typing import Any, Callable
34

45
from dispatch.coroutine import call, gather
@@ -284,7 +285,7 @@ def assert_poll(self, output: Output) -> poll_pb.Poll:
284285

285286
def assert_empty_poll(self, output: Output):
286287
poll = self.assert_poll(output)
287-
self.assertEqual(poll.calls, [])
288+
self.assertEqual(len(poll.calls), 0)
288289

289290
def assert_poll_call_functions(self, output: Output, expect: list[str]):
290291
poll = self.assert_poll(output)

0 commit comments

Comments
 (0)