Skip to content

Commit 1aa2ce4

Browse files
committed
Ignore pid being None
1 parent 3370ed9 commit 1aa2ce4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/tests/test_database_backend.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def test_interrupt_signals(self) -> None:
855855
result.refresh()
856856
self.assertEqual(result.status, ResultStatus.RUNNING)
857857

858-
os.kill(process.pid, sig)
858+
os.kill(process.pid, sig) # type:ignore[arg-type]
859859

860860
process.join(timeout=1)
861861

@@ -879,14 +879,14 @@ def test_repeat_ctrl_c(self) -> None:
879879
result.refresh()
880880
self.assertEqual(result.status, ResultStatus.RUNNING)
881881

882-
os.kill(process.pid, signal.SIGINT)
882+
os.kill(process.pid, signal.SIGINT) # type:ignore[arg-type]
883883
time.sleep(0.01)
884884

885885
self.assertTrue(process.is_alive())
886886
result.refresh()
887887
self.assertEqual(result.status, ResultStatus.RUNNING)
888888

889-
os.kill(process.pid, signal.SIGINT)
889+
os.kill(process.pid, signal.SIGINT) # type:ignore[arg-type]
890890

891891
process.join(timeout=2)
892892

@@ -946,7 +946,7 @@ def test_keyboard_interrupt_task(self) -> None:
946946
self.assertIsInstance(result.result, SystemExit)
947947

948948
@skipIf(connection.vendor != "sqlite", "SQLite only for now")
949-
def test_multiple_workers(self):
949+
def test_multiple_workers(self) -> None:
950950
results = [test_tasks.noop_task.enqueue() for _ in range(10)]
951951

952952
with tempfile.TemporaryFile(mode="w+") as output:

0 commit comments

Comments
 (0)