Skip to content

Commit

Permalink
Test also is_picklable
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Aug 29, 2024
1 parent 38f0ed3 commit 8ce0d84
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion checkbox-support/checkbox_support/tests/test_timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
from unittest.mock import patch

from checkbox_support.helpers.timeout import (
run_with_timeout,
timeout,
is_picklable,
run_with_timeout,
fake_run_with_timeout,
)

Expand Down Expand Up @@ -215,3 +216,7 @@ def test_run_with_timeout_system_exit_no_get(

with self.assertRaises(SystemExit):
run_with_timeout(lambda: ..., 0)

def test_is_picklable(self):
self.assertFalse(is_picklable(lambda: ...))
self.assertTrue(is_picklable([1, 2, 3]))

0 comments on commit 8ce0d84

Please sign in to comment.